light module

class light.Light(position=(50, 50, -10), color=(1, 1, 1))[source]

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