picogl.backend.gl.lighting.system

Owned fixed-function lighting configuration.

Classes

GLLightingSystem

Configuration for fixed-function lighting state.

Module Contents

class picogl.backend.gl.lighting.system.GLLightingSystem[source]

Configuration for fixed-function lighting state.

mode: picogl.backend.gl.lighting.light.GLLightingMode[source]
ambient: picogl.core.rgbcolor.RGBAColor[source]
lights: dict[picogl.backend.gl.capability.GLFixedFunctionCapability, picogl.backend.gl.lighting.light.LightSource][source]
material_shininess: float | None = None[source]
set_unpack_alignment: bool = False[source]
apply() → None[source]

Install this lighting configuration into the current GL context.

_enable_lights() → None[source]