Reproduction steps:
- Open the attached project "ReproProj"
- Open the “/Assets/Unity/Scenes/SampleScene.unity” Scene
- Enter the Play Mode
- Observe the Quad in the middle
Expected result: Shadow is rendered on the Plane
Actual result: Shadow is rendered on the Quad
Reproducible with: 6000.0.73f1, 6000.3.14f1, 6000.4.4f1, 6000.5.0b5, 6000.6.0a3
Reproducible on:
Play Mode
Windows Standalone Player
Testing environment: Windows 10 Enterprise 21H2
Not reproducible on: No other environment tested
Notes:
- This issue also happens when using the Transformation Matrix - View/InverseView Node
- This issue also happens when writing HLSL code by using: GetCameraForwardWorldSpace() or UNITY_MATRIX_V
Workaround:
- Passing the Camera Direction (Camera.transform.forward) via a script to a shader parameter