Material
Index
Constructors
constructor
Parameters
options: MaterialOptions
Returns Material
Properties
publicreadonlyid
staticBuiltInUniforms
Accessors
color
fragmentSource
Fragment source this material was created with (before shader compilation)
Returns string
publicimages
Returns Record<string, ImageSource>
isOverridingGraphic
Returns boolean
isUsingScreenTexture
Returns boolean
name
Returns string
publicuniforms
Returns UniformDictionary
vertexSource
Vertex source this material was created with (before shader compilation)
Returns string
Methods
addImageSource
Parameters
samplerName: string
image: ImageSource
Returns void
getShader
Returns Shader | null
removeImageSource
Parameters
samplerName: string
Returns void
update
Parameters
callback: (shader: Shader) => any
Returns void
use
Returns void
Unique identifier for this material, useful for debugging and tooling