- Home /
How can I get the correct VR rendering camera matrix in a native render plugin?
I have tried to pass Camera.current.worldToCameraMatrix and GL.GetGPUProjectionMatrix(Camera.current.projectionMatrix, VRSettings.enabled) in to the native plugin, but the mesh rendered by native plugin is not at the same position as Unity renders.
Is there any ideas how to get the correct camera matrix for VR?
or can I use the constant buffer of Unity in a native render plugin? then I can use the matrix in shader directly
Your answer
Follow this Question
Related Questions
Native Plugin Interface and VR support 0 Answers
Include .so native file in an Android .aar file 0 Answers
how to use vrgaze to change the color of the cube 0 Answers
Unity 5.6 + GVR 1.3 what's the right way to setup for VR? 3 Answers
[BUG] Can't use postprocessing with single-pass stereo rendering enabled (5.6, GearVR) 2 Answers