Search Issue Tracker
Fixed in 2017.4.X
Votes
0
Found in
5.3.3f1
Issue ID
778096
Regression
No
[StandardShader] Parallax incorrect in some scale/batching situations, due to lack of normalize() in shader
Normals/tangents in the vertex shader are not guaranteed to be normalized, and are not normalized in some dynamic batching situations, for example. Looks like parallax mapping related code in Standard shader does not expect that.
How to reproduce:
1. Open attached project
2. Open scene testscene.unity
3. Select the material Parallax Mapping.mat
4. Modify its Height Map property
- Note that the height maps adjust properly in the scene/game view
5. Enable the plane_fbx_VertexColorsWetness (1) gameobject in the hierarchy
6. Repeat from step 3
- Note that when the Height Map is modified, the height map appears to be stretched-out
- Ddding normalize(v.normal) and normalize(v.tangent) in shader program solves it
- Reproduced in Version 5.4.0b9 (04b47bfe5580), Version 5.3.3p3 (1c43f6d3d3c3), Version 5.2.4f1 (98095704e6fe)
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Crash on PrepareDrawShadowsCommandStep1 when entering the Play Mode in a specific project
- Physics Layer Collision Matrix's Layer names, checkboxes and hover highlights become misaligned when the Editor's UI Scaling gets changed
- Light/shadow information on an edge of a Terrain tile creates a seam with an adjacent Terrain tile when baking a LightMap
- "Missing types referenced from component UniversalRenderPipelineGlobalSettings on game object UniversalRenderPipelineGlobalSettings..." warning is thrown after switching the Platform to tvOS
- “Metal: Error creating pipeline state (Universal Render Pipeline/2D/Sprite-Lit-Default): Vertex attribute BLENDINDICES0(5) of type uint4 cannot be read using MTLAttributeFormatFloat2 (null)“ when setting GPU Skinning to GPU after opening the project
Add comment