picogl.backend.legacy.core.camera.matrices.setup
This module provides a helper function to retrieve transformation matrices from the OpenGL state machine. It uses glGetFloatv to query matrices such as the modelview or projection matrix and returns them in a GLSL-compatible format.
Functions
|
setup_matrices |
Module Contents
- picogl.backend.legacy.core.camera.matrices.setup.setup_matrices(aspect: float, fovy: float = ProjectionConfig.fovy, near: float = ProjectionConfig.near, far: float = ProjectionConfig.far)[source]
setup_matrices
- Parameters:
aspect – float Aspect ratio
fovy – Vertical field of view in degrees
near – Near clipping plane
far – Far clipping plane
- Returns:
None