Search Issue Tracker

By Design

Votes

0

Found in

5.3.0f4

Issue ID

760127

Regression

No

Surface shader analysis not using 32-bit floats for fixed/half/float/double types

Shaders

-

Reproduction steps:
1. Open attached Unity project.
2. Open "Bug scene".
3. Notice, that "Sphere" game object is black.
4. Open "Bug" shader and change line 25 to "o.Normal.z *= 1.0001;".
5. Notice, that "Sphere" gets colored.

Comments (1)

  1. 5ea2f0253a45a07dbcc7328f66a9eee3?d=mm

    Aras

    Aug 25, 2017 09:51

    By design; writes to o.Normal in surface shader make it become a tangent space normal -- hence it turns blue.

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.