- Home /
how to change progection matrix for some objects
There are a couple of objects for which I want to change the UNITY_MATRIX_MVP(model view projection matrix) or UNITY_MATRIX_MV or UNITY_MATRIX_P.
I can't override vertex program for use custom projection matrix, because i use surface shader and it uses its own vertex program. If i render objects after rendering scene and change camera.projection matrix, it renders out of unity lighting system.
I need set different fov or scale for weapons, but i can't use two cameras
Projection matrix settings are global. The solution is to use two cameras. Why do you say you can't do that?
because the depth buffer is individual for each camera, and the shadow is shown poorly
Your answer
Follow this Question
Related Questions
Changing camera.projectionMatrix doesn't affect skyboxes? 0 Answers
Semi transparent Object behind walls? 1 Answer
Camera with shader? 2 Answers
Reproduce WorldToViewportPoint function 2 Answers