picogl.backend.legacy.core.camera.setup.materials

Setup Materials

Attributes

DEFAULT_SCENE_MATERIAL

Functions

setup_materials([material]) → None

Install the default (or supplied) Phong material and enable COLOR_MATERIAL.

Module Contents

picogl.backend.legacy.core.camera.setup.materials.DEFAULT_SCENE_MATERIAL[source]
picogl.backend.legacy.core.camera.setup.materials.setup_materials(material: picogl.backend.gl.phong.material.PhongMaterial | None = None) → None[source]

Install the default (or supplied) Phong material and enable COLOR_MATERIAL.

Vertex colours drive ambient+diffuse; specular stays soft so colours do not wash out relative to modern shader shading.