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
- Only the left screen is rendering when using Render Graph Fullscreen Blit in Meta Quest 2
- Context menu with the "Revert" option doesn't appear when pressing the right mouse button on a "Vector2" or "Vector3" property in the Inspector of a custom shader
- Missing Render Feature "Full Screen Pass Render Feature" in any “Universal Renderer Data” asset when upgrading from 2022.3
- Inconsistent ParticleSystemVertexStream.PercentageAlongTrail data range in Trail Texture Modes except "Stretch"
- The Graph Debug Window can be right clicked through and the Node Workspace is manipulated instead
Add comment