Hi:
How can I use unity camera’s projectionMaxtrix and worldToCameraMatrix as OpenGL’s GL_PROJECTION and GL_MODELVIEW matrix? Is there any conversion to perform before using it in OpenGL?
What exactly do you mean by “using it in OpenGL”? Unity does actually use the OpenGL format for the matrices internally. Do you talk about writing shaders in GLSL ? As you can read, this is not recommended since Unity does automatically cross compile the HLSL shaders for OpenGL. You should be more clear what you want to do.
Hi:
I need the matrix to render a realtime video in a OpenGL environment outside unity, make it look changing in sync with the camera, for instance changing the camera’s fov,the video will be scale down or scale up;
I had understood that I can use unity’s matrix in OpenGL directly