Search Issue Tracker
By Design
Votes
0
Found in
2022.3.57f1
6000.0.37f1
6000.1.0b5
6000.2.0a1
Issue ID
UUM-96973
Regression
No
[SW-unity-6-1] Shader warning in the Inspector when selecting ‘Shader Graphs/ShaderGraph_Water_Unlit’ Shader
Steps to reproduce:
1. Open the attached "IN-93141" project
2. Build and Run
3. Open ShaderGraphs → Shader Graph_Water_Unlit
4. Observe the Error in the Inspector
Expected result: No error
Actual result: Shader Graph_Water_Unlit has an error in the Inspector
Reproducible in : 2022.3.57f1, 6000.0.37f1, 6000.1.0b5, 6000.2.0a1
Reproducible on: Windows 11
Not reproducible on: No other environment tested
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
- Crash on MonoBehaviour::CallMethodIfAvailable when performing various actions
- Incorrect rotations on bones when importing FBX animations with a Humanoid Rig
- Render Graph Viewer “Pass List” section is flickering when resizing vertically and the Render Graph Viewer window is docked
- Render Graph Viewer Capture button plays the click animation but does not do anything when the Capture button is pressed with the “Enter” key on the keyboard
- UI Builder Scrollview is unable to scroll all the way down when the window is downsized vertically
Resolution Note:
The warning appears to be valid. In the ShaderGraph_Water_Unlit shader, the "Calculate Edge Gradient (Top and Bottom)" group contains a Power node (UV -> Split -> Negate -> Add -> Power) whose input could be negative if the input UV coordinate has a Y component greater than 1.
Adding a Saturate node before the Power node would enforce the expected range and make the warning go away. Or, you can ignore it if you are sure your input UVs will be between 0 and 1.