Skip to main content

lambertMaterial

This lambertMaterial shader module provides a diffuse-only matte material model. It applies Lambert shading per fragment using the shared lighting module. It is the cleanest and cheapest built-in lit material when you do not want specular highlights.

Bind Group Convention​

lambertMaterial currently assigns its uniform block to bind group 3, the recommended luma.gl slot for per-material surface state.

Uniforms​

UniformTypeDefaultDescription
unliti32falseWhen enabled, bypasses lighting and returns the incoming surface color.
ambientf320.35Scales the contribution from lighting.ambientColor.
diffusef320.6Scales the diffuse Lambert term for point, spot, and directional lights.