Search Issue Tracker

Fixed in 12.0.0

Votes

4

Found in [Package]

12.0.0

Issue ID

1338703

Regression

No

"floating point division by zero" warning is thrown when a Sample Gradient Node is connected to Albedo slot

Package: Shader Graph

-

How to reproduce:
1. Open the user's attached "Testing Shader.zip" project
2. Selected the "BuggedShader" Shader Graph
3. Observe the Inspector window

Expected result: No warnings are thrown in the Inspector window
Actual result: Two "floating point division by zero" warnings are thrown in the Inspector window

Reproducible with: 7.6.0 (2019.4.27f1), 10.5.0 (2020.3.10f1), 11.0.0 (2021.1.8f1), 12.0.0 (2021.2.0a17)

  1. Resolution Note (fix version 12.0.0):

    Fixed in: 2021.2.0b1

Comments (3)

  1. Hovl

    Nov 24, 2024 23:20

    Still exist in Unity 2022 using Scene depth node with Eye value.

  2. morepixels

    Aug 12, 2021 22:16

  3. Rex1_

    May 30, 2021 20:37

    Any way to bypass this bug ?

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.