Skip to main content

@luma.gl/engine/materials

MaterialFactory defines a binding schema and creates Material instances that models can share.

Explore each PBR material property with an inline example, its parameters, and texture bindings. Create materials with createPBRMaterial from @luma.gl/engine/materials. See PBR materials for factory options and resource ownership.

The optical plugins implement refractive glass and reflective surfaces.

CapabilityPages
Surface color and coverageBase color, opacity, double-sided surfaces
Metallic and rough surfacesRoughness, metallic
Self-emissionEmissive surfaces and strength
Surface detailNormal mapping, bump mapping, ambient occlusion
Light responseUnlit, specular, index of refraction
Layered and directional responseClearcoat, sheen, anisotropy, iridescence
Transmission and volumesTransmission, thickness and attenuation, dispersion
Translucency and scatteringDiffuse transmission, volume scattering, thin-wall scattering
Texture inputs and lightingCoordinates and transforms, lightmaps, environment lighting