Fix T95981: Remove implicit conversion in texture paint shader.
This fixes a crash on selected platforms.
This commit is contained in:
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
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue