Search Issue Tracker
By Design
Votes
0
Found in
6000.0.33f1
6000.1.0a9
6000.2.0a1
Issue ID
UUM-92411
Regression
No
Different colors are present when Alpha channel is unclamped
Reproduction steps:
1. Open the attached project "ReproProj"
2. Open the “/Assets/Test.unity” Scene
3. Observe the Game view
Expected result: Red fade is present
Actual result: Red, pink, white and blue colors are present
Reproducible with: 6000.0.33f1, 6000.1.0a9
Could not test with: 2022.3.55f1 (Effects of the Shader are not present)
Reproducible on:
Play Mode
Windows Standalone Player
Testing environment: Windows 10 Enterprise 21H2
Not reproducible on: No other environment tested
Note:
- Does not reproduce when clamping (saturate) the alpha channel in the ShaderGraph
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Texture2D hash changes inside of an AssetBundle when rebuilding a SpriteAtlas bundle with an empty AssetPostprocessor Script enabled
- Aniso Level still applies when Generate MipMap is disabled in Texture Import Settings
- Mipmap Limit Groups long names are not truncated when creating a new Mipmap Limit Group with a long name
- “ArgumentException: Invalid double parameter.” error is thrown when Infinity is typed into the Fixed Timestep field
- GameObject becomes gray when using HDRP and STP together on macOS
Resolution Note:
Hello! This is expected behavior. Alpha and Color may be different inputs, but both values are used in the final color calculation. So, Alpha can affect the color based on the shader's blending mode, particularly if it is outside the expected 0-1 range.
To ensure your shader works in all contexts, we'd recommend clamping the value to the 0-1 range. As noted in your report, using the Saturate node is one way to achieve this.