Bases: object
Directional light source with ambient, diffuse, and specular components.
Provides lighting calculations and shadow mapping view matrix.
-
get_view_matrix()[source]
Calculate light view matrix for shadow mapping.
- Returns:
View matrix from light’s perspective
- Return type:
mat4