mirror of https://github.com/bjornbytes/lovr.git
Pass blends by default;
This commit is contained in:
parent
78214988a4
commit
f4f95a64d7
|
@ -186,7 +186,6 @@ function lovr.errhand(message)
|
|||
|
||||
local function render(pass)
|
||||
pass:setColor(.95, .95, .95)
|
||||
pass:setBlendMode('alpha')
|
||||
pass:text('Error', x, y, z, scale * 1.6, 0, 0, 0, 0, nil, 'left', 'top')
|
||||
pass:text(message, x, y - .8, z, scale, 0, 0, 0, 0, wrap, 'left', 'top')
|
||||
end
|
||||
|
|
|
@ -496,7 +496,6 @@ function lovr.draw(pass)
|
|||
local subtitlePosition = titlePosition - font:getHeight() * .25 - padding
|
||||
|
||||
pass:setCullMode('back')
|
||||
pass:setBlendMode('alpha')
|
||||
pass:setShader(logo)
|
||||
pass:plane(0, 2, -3)
|
||||
|
||||
|
|
|
@ -3385,6 +3385,8 @@ Pass* lovrGraphicsGetPass(PassInfo* info) {
|
|||
pass->pipeline->info.color[i].mask = 0xf;
|
||||
}
|
||||
|
||||
lovrPassSetBlendMode(pass, BLEND_ALPHA, BLEND_ALPHA_MULTIPLY);
|
||||
|
||||
pass->materialDirty = true;
|
||||
pass->samplerDirty = true;
|
||||
|
||||
|
|
Loading…
Reference in New Issue