Search Issue Tracker
Fixed
Votes
0
Found in
5.4.2f2
Issue ID
862149
Regression
No
Shader function ComputeScreenPos does not actually compute screen position unless divided by its W
Steps to reproduce:
1. Download and open the attached project
2. Open the scene view
3. Move the Quad along any axis
Expected result: quad changes color depending on screen position
Actual result: quad barely changes color unless the shader's .xyz component divided by its .w.
Reproduced on 5.4.2f2, 5.4.3p3, 5.5.0p2, 5.6.0b2
Shader breaks on earlier versions
Notes:
-This can be fixed when the shader's .xyz component divided by its .w. In this project this can be done by setting the "Divide by W" value to 1 in the Quad's shader
-This is not necessarily a bug, but should be noted in the documentation
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Any small change in UI Builder Inspector refreshes Editor Inspector
- Inaccurate Box Collider boundaries on a rotated child Cube when the parent GameObject Scale is non-uniform
- [Android] "SHADOWS_SCREEN" set as shader Keyword when no "_ShadowMapTexture" is bound leads to freeze on a build on some Mali GPU devices
- The global scene list is overridden in a project built with command line when the Override Global Scene List setting is disabled in the build profile
- Global Scenes are not included in the Build when building multiple Build Profiles at the same time
Add comment