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.
Comments (1)
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
- Errors in the Console when creating a new "2D Platformer Microgame" template project
- Prefab Override popup displays on wrong monitor when Inspector width is resized to minimum
- Scroll View is not moving by inertia after scrolling by click and dragging when Editor window is minimized and Canvas "Render Mode" is set to "World Space"
- "type mismatch error" occurs when the currentDirectionWS output of a Sample Water Surface node is connected to a float3 input
- URP Material Upgrade utility does not enable Alpha Clipping when material had Rendering Mode set to Cutout
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.