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
- After converting a Built-in project to URP render texture related errors are spammed that can lead to Game view being rendered on top of Scene view
- UI Builder slider value lags and stutters when sliding/modifying certain property values
- "Reset UI Builder Layout" functionality inconsistently changes Canva Size when "Match Game View" is enabled/disabled
- Texture Import Warnings are obscured by other Terrain Layer options in the Inspector
- Burst Inspector middle divider is jittering when resized with the Burst Inspector window docked
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.