Fix T95981: Remove implicit conversion in texture paint shader.

This fixes a crash on selected platforms.
This commit is contained in:
Jeroen Bakker 2022-02-28 08:40:59 +01:00
parent 4ee4b61dd8
commit 2a644deaa7
Notes: blender-bot 2023-02-14 06:25:25 +01:00
Referenced by issue #95981, Setting Masking->Stencil Mask->Stencil Image crashes Blender. Includes fix
1 changed files with 1 additions and 1 deletions

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;