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
padding
Extra transparent pixels added around the graphic when running the pipeline
Returns number
pipeline
The multipass pipeline run on the graphic before the composite fragment, if any
Returns ShaderPipelineLike | undefined
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