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
- Console shows Exception: {"error":"not found","detail":["not found"]} after opening Build History window
- [HDRP] Volumetric cloud shadows disappear when there is no directional light shadows
- “Selector” column names in the Search window are lowercase when added
- Install List Project Counter Panel can be right clicked through and Install Context Menu can be opened disabling Project Counter Panel's buttons
- [MacOS] Scene is marked/flickering as dirty (with asterisk) when dragging a Material on a GameObject in Scene view
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.