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

  1. 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.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.