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
- Crash on RaiseException when opening a specific project
- DownloadHandlerScript.CompleteContent is called twice when building for WebGL
- Scene view has Y coordinates of the Screen Position node flipped when some of the URP features are disabled
- Volumetric fog shader variants are missing from build when "Strict Shader Variant Matching" is disabled
- Unnecessary modifications clutter the Scene when using a RectTransform driven by a LayoutGroup in a Prefab
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.