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
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.
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
- Shadows are not cast when the Light's CullingMask and the GameObject's Layer do not match
- Graphics.DrawMeshInstanced does not work when 2D Renderer and 2D Shaders are used
- SpeedTree does not move when using WindZone
- "Undeclared identifier 'LinearToSRGB'" error is thrown when creating a color variable with HDR color mode and assigning a Custom Render Texture target in Shader Graph
- Input System package is missing when creating a new HDRP project
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.