Search Issue Tracker

Duplicate

Votes

0

Found in

5.0.0f2

Issue ID

672999

Regression

No

Intensity in BlendModesOverlay shader's alphablend mode

Shaders

-

Intensity not used in BlendModesOverlay shader's alphablend mode

All the other modes use intensity as a way to fade in/out the screen overlay effect. This can be easily fixed by changing line 82 of the shader from:

return lerp(tex2D(_MainTex, i.uv[1]), toAdd, toAdd.a);

to:

return lerp(tex2D(_MainTex, i.uv[1]), toAdd, toAdd.a * _Intensity);

which would make it behave more in line with the other modes, as well as be more useful.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.