Search Issue Tracker
By Design
Votes
0
Found in
5.6.1p2
Issue ID
918122
Regression
Yes
Alpha value is not clamped to zero when setting shader's alpha blending value to negative
To reproduce:
1. Open user's project, in Project window click Unlit_NegativeAlpha material
2. In Inspector window, right-click material, select Edit Shader
3. In opened shader's file go to line 39 and make sure alpha value is negative, feel free to change it up to different negative values
Expected: shader's alpha value is clamped at 0 - no matter the negative value, material should remain invisible
Actual: shader's alpha value is not restricted to any negative float, material becomes black, has interesting shading effects
Reproduced in: 5.6.1p2, 5.6.1p3, 2017.1.0b9, 2017.2.0a3
Not reproduced in: 5.4.5p3, 5.5.4f1
Regression starts in: 5.6.0a1
Note: check picture attached for comparison of correct and incorrect shading
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Tile Palette grid is moved after entering Play Mode
- Tile Palette Edit mode turns off in Play Mode
- The Editor crashes when Generating Font Atlas in the Font Asset Creator with “9999999999” padding and 256x256 Atlas Resolution
- [iOS] An “ArgumentNullException” error is thrown when GetIntroductoryPriceDictionary() method is called
- Font Import Settings documentation page is missing when the documentation button is pressed in the Inspector window
Add comment