Search Issue Tracker
Won't Fix
Votes
0
Found in [Package]
Issue ID
1089064
Regression
No
Camera.previousViewProjectionMatrix does not update when using any SRP settings
To reproduce:
1. Open attached project
2. Make sure any SRP is assigned in Graphics settings
3. Enter Play mode
4. Move the camera, press the GUI button every time after moving
Expected: previousViewProjectionMatrix returns last frame's projection matrix
Actual: previousViewProjectionMatrix returns only first frame's projection matrix (doesn't get updated)
Reproduced in: 207.4.13f1, 2018.1.9f2, 2018.2.13f1, 2018.3.0b6, 2019.1.0a5
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
- “[Worker0] Could not generate preview image“ error when opening macOS native plugin in the Inspector with Architecture to build for set to ARM 64-bit
- [iOS] Application.absoluteURL is empty on Awake/Start when opening via deep link with Splash Screen disabled
- Crash on MemoryManager::Deallocate when rapidly calling Addressables.LoadAssetAsync
- Crash on physx::shdfnd::atomicIncrement when adjusting values on a character controller component after entering Play mode in Prefab edit mode
- [Rendering Debugger] [NewInputSystem] Debug Overlays in Play mode throws InvalidOperationException when using New Input System
Resolution Note:
HDRP setup all shaders uniform at frequency other than objects in C# (Per frame, per camera etc...) and HDRP doesn't use camera matrix from builtin Unity.
In HDRP to access previous camera matrix use HDCamera.prevViewProjMatrix, in hlsl: _PrevViewProjMatrix.