What is the equivalent of gl_ModelViewMatrix and gl_ModelViewProjectionMatrix in modern OpenGL?
I have this code which is context "#version 330 core"
Which part of it is old gl_ModelViewMatrix and which part is gl_ModelViewProjectionMatrix? (What is gl_ProjectionMatrix that was used to create ModelViewProjection?)Code :gl_Position = // Create a Perspective view PerspectiveViewMatrix(90.0, AspectRatio, 0.01, 1000.0 ) // Move back 4 + whatever the wheel says: * TranslationMatrix(0, 0, -4 -0.35*MouseWheel) // Rotate X axis with Y: * RotationMatrix(MouseMovement.y, X_AXIS) * RotationMatrix(-MouseMovement.x, Y_AXIS) * RotationMatrix(float(Strafing*3), Z_AXIS) // Apply transformation matrix: * TransformationMatrix * in_Vertex;