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

Package: 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

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

Comments (1)

  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

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.