API reference

Every public class, method, and event in @codexo/exojs. Generated from source.

C

classSpriteMaterial

@codexo/exojs / rendering / stable

Material specialization for Sprite drawables. API shell for the sprite custom-material path; the renderer integration and instancing contract are added in a later phase. The base texture stays on the sprite — this material supplies the fragment program, uniforms, and additional texture bindings.

8
props
3
methods
0
events
Import
import { SpriteMaterial } from '@codexo/exojs'

Material specialization for Sprite drawables.

API shell for the sprite custom-material path; the renderer integration and instancing contract are added in a later phase. The base texture stays on the sprite — this material supplies the fragment program, uniforms, and additional texture bindings.

Constructors 1
new(options: MaterialOptions): SpriteMaterial
Methods 3
destroy(): void
setTexture(name: string, texture: RenderTexture | Texture): this
setUniform(name: string, value: UniformValue): this
Properties 8
blendMode: BlendModes
sampler: SamplerOptions | null
shader: ShaderSource
target: "sprite"
textures: Record<string, Texture | RenderTexture>
uniforms: Record<string, UniformValue>
bindKey: number
pipelineKey: number
Source