Search Issue Tracker
By Design
Votes
1
Found in [Package]
5.6.1
Issue ID
1114216
Regression
No
Pink spots appear in the Power node when connecting Gradient Noise and Power nodes in the Shader Graph
How to reproduce:
1. Create a new project
2. Import Shader Graph package
3. Create PBR Graph (right-click in the Assets tab -> Create -> Shader -> PBR graph) and double click on it to open in Shader Graph
4. Create 'Gradient Noise' and 'Power' nodes and connect Gradient Noise Out(1) output with Power A(1) input
Expected result: No pink spots in the Power node
Actual result: Pink spots appear in the Power node
Reproducible: 2018.3.8f1, 2019.1.0b6, 2019.2.0a7
Can't reproduce: 2018.3.0a1 - 2018.3.0b2, 2019.1.0a1- 2019.1.0a12, because of missing PBR graph or damaged nodes
Comments (1)
-
elesssar
Dec 13, 2023 07:12
Gradient Noise node outputs a value between 0 and 1. How can a power of the value be a NaN value?
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
- SerializeReference does not update references when the generic field type changes
- Memory leak when running tests in IL2CPP with System.Threading.Timer
- Tile Palette Tilemap dropdown icons are not visible
- Create New Tile Palette dropdown text is not centered and text is cut off
- Volume numeric fields allows adding unlimited number in numeric field which breaks UI, no character limit
Resolution Note:
These pink spots are Not a Number (NaN) values. In Shader Graph we display them as pink in the previews so the user is aware of them. As a workaround, you can clamp the values by yourself. In this case a Saturate node (clamps input between 0 and 1) between the noise and power nodes should resolve the issue.