picogl.backend.gl.legacy.lighting ================================= .. py:module:: picogl.backend.gl.legacy.lighting .. autoapi-nested-parse:: 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 ---------- .. autoapisummary:: picogl.backend.gl.legacy.lighting.DEFAULT_LEGACY_LIGHT picogl.backend.gl.legacy.lighting.DEFAULT_LEGACY_MATERIAL Classes ------- .. autoapisummary:: picogl.backend.gl.legacy.lighting.GLFixedFunctionLightingModel Functions --------- .. autoapisummary:: picogl.backend.gl.legacy.lighting.gl_legacy_lighting Module Contents --------------- .. py:data:: DEFAULT_LEGACY_LIGHT .. py:data:: DEFAULT_LEGACY_MATERIAL .. py:function:: gl_legacy_lighting() -> None Install the default legacy light and material. .. py:class:: GLFixedFunctionLightingModel GLLightingModel .. py:attribute:: LIGHT .. py:attribute:: MATERIAL .. py:attribute:: CAPABILITIES .. py:method:: apply() -> None Enable or disable fixed-function lighting for this frame. .. py:method:: setup_color_materials() setup color materials .. py:method:: setup_materials() setup materials .. py:method:: setup_light_source() setup light source .. py:method:: enable() enable .. py:method:: disable() disable