diff options
Diffstat (limited to 'render/vulkan/shaders')
-rw-r--r-- | render/vulkan/shaders/texture.frag | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/render/vulkan/shaders/texture.frag b/render/vulkan/shaders/texture.frag index 7a7b8c57..0f9c52f1 100644 --- a/render/vulkan/shaders/texture.frag +++ b/render/vulkan/shaders/texture.frag @@ -11,15 +11,6 @@ layout(push_constant) uniform UBO { void main() { out_color = textureLod(tex, uv, 0); - - // We expect this shader to output pre-alpha-multiplied color values. - // alpha < 0.0 means that this shader should ignore the texture's alpha - // value. - if (data.alpha < 0.0) { - out_color.a = -data.alpha; - out_color.rgb *= -data.alpha; - } else { - out_color *= data.alpha; - } + out_color *= data.alpha; } |