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
- Warning of an unknown Script missing is logged when selecting VFX in Play Mode
- Vertical and horizontal scrollbars appear and disappear when dragging an attribute to a different position within the Shader Graph Hierarchy
- AudioSource.PlayDelayed() does not work with Audio Random Containers
- Compatible with the VFX Graph Shader Graph can't be dragged and dropped into the "Output" block from the Project window
- [Silicon] Freeze/crash on BrotliDecoderDecompressStream when using System.IO.Compression.BrotliDecoder.TryDecompress
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.