Search Issue Tracker
By Design
Votes
0
Found in
5.4.0f3
Issue ID
916630
Regression
No
Shader compiler strips/munges code it shouldn't, breaking parallax effect in shader
*Please find the repro project in comment*
Steps:
1. Open the repro scene
2. Open shader "MegaSplat_Example_Mesh" and go to line 2039. Make sure the line 2039 is not commented.
line 2038 o.Albedo = splats.Albedo;
line 2039 o.Albedo += i.viewDir*0.001f;
3. Save the shader and move the "Parallax Scale" slider on material and observe (01.gif in comment)
4.Repeat step 2 but this time make sure the line 2039 is commented.
line 2038 o.Albedo = splats.Albedo;
line 2039 //o.Albedo += i.viewDir*0.001f; // Comment this line
5. Save the shader and move the "Parallax Scale" slider on material and observe (03.gif in comment)
Expected result:
Line 2039 should not be needed, and should give the correct parallax effect (result in 03.gif).
Reproduced in: 2017.1.0b8, 5.6.1p3, Win10 DX11
Please read comment for notes.
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 GUIManager::DoGUIEvent when focusing on the Game view window on a specific project
- Asset creation in the Project Browser is not always undone/inconsistent when the undo shortcut is pressed right after creating an asset
- JobTempAlloc memory leak warning is thrown when the Player is shut down
- Graphics State Collection warm-up does not work when using with Addressables Shaders
- "Baked Shadow Radius" field is visible but inactive when when the Shadow Type is set to "Hard Shadows" under the Light Component
Add comment