GL.modelview Manual     Reference     Scripting  
Scripting > Runtime Classes > GL
GL.modelview

static var modelview : Matrix4x4

Description

The current modelview matrix.

Assigning to this variable is equivalent to glLoadMatrix(mat) in OpenGL; in other graphics APIs the corresponding functionality is emulated.

Changing modelview matrix overrides current camera's view parameters, so most often you want to save and restore matrix using GL.PushMatrix and GL.PopMatrix.

Reading this variable returns the current modelview matrix.