Search Issue Tracker
By Design
Votes
0
Found in
2019.4
2020.3
2020.3.7f1
2021.2
2022.1
2022.2
Issue ID
1402429
Regression
No
Procedural Shader is not displaying correctly when using SV_POSITION
How to reproduce:
1. Open the attached project (ShaderTest.zip)
2. Open scene Scenes/SampleScene
3. Observe the GameObject "Shader Plane" in the Scene view and Game view, positioning the Camera right above the Plane
Expected result: large pink markings are visible on the entire Plane
Actual result: the Plane is mostly black with little to no pink markings visible
Reproducible with: 2019.4.37f1, 2020.3.31f1, 2021.2.16f1, 2022.1.0b13, 2022.2.0a8
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
- Crash on D3D12CommonShader::ApplyGpuProgram when attaching material which samples "_UnityFBInput0" to "Full Screen Pass Renderer Feature" Component
- SpeedTree meshes and objects count differs when comparing the numbers in the Player with the Editor
- Model and Prefab Preview icons are not updated after upgrading associated Materials to URP
- Game view is rendered white when viewing the Editor with HDR display and Post Proccesing is enabled on the Main Camera with 2D URP
- UI Builder doesn't update the style sheet when using "Extract inline style" right-click option
Resolution Note (2022.2.X):
This issue was caused by a mistake in the user's code, declaring "const float3 AA" in the global scope.