picogl.backend.gl.legacy.lighting

Provides a utility function for setting up lighting in a legacy OpenGL rendering context.

This module configures a basic fixed-function light and material using PicoGL value objects.

Functions: - gl_legacy_lighting: Configures the lighting and material parameters

for a default scene.

Attributes

DEFAULT_LEGACY_LIGHT

DEFAULT_LEGACY_MATERIAL

Classes

GLFixedFunctionLightingModel

GLLightingModel

Functions

gl_legacy_lighting() → None

Install the default legacy light and material.

Module Contents

picogl.backend.gl.legacy.lighting.DEFAULT_LEGACY_LIGHT[source]
picogl.backend.gl.legacy.lighting.DEFAULT_LEGACY_MATERIAL[source]
picogl.backend.gl.legacy.lighting.gl_legacy_lighting() → None[source]

Install the default legacy light and material.

class picogl.backend.gl.legacy.lighting.GLFixedFunctionLightingModel[source]

GLLightingModel

LIGHT[source]
MATERIAL[source]
CAPABILITIES[source]
apply() → None[source]

Enable or disable fixed-function lighting for this frame.

setup_color_materials()[source]

setup color materials

setup_materials()[source]

setup materials

setup_light_source()[source]

setup light source

enable()[source]

enable

disable()[source]

disable