1
1

Fix T95981: Remove implicit conversion in texture paint shader.

This fixes a crash on selected platforms.
This commit is contained in:
2022-02-28 08:40:59 +01:00
parent 4ee4b61dd8
commit 2a644deaa7

View File

@@ -15,7 +15,7 @@ void main()
if (maskInvertStencil) {
mask.rgb = 1.0 - mask.rgb;
}
float mask_step = smoothstep(0, 3.0, mask.r + mask.g + mask.b);
float mask_step = smoothstep(0.0, 3.0, mask.r + mask.g + mask.b);
mask.rgb *= maskColor;
mask.a = mask_step * opacity;