Skip to main content

MaterialContext

Passed to Material.update's callback for batch-updating a material mid-frame.

Index

Properties

shaders

shaders: Shader[]

Every compiled Shader this material drives, in order

shadersByName

shadersByName: Map<string, Shader>

The same shaders as shaders, keyed by Shader.name.

uniforms

The material's uniforms, the same dictionary as material.uniforms changes reach the composite shader and, when passes is used, are forwarded to every pass

Page Options