API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
classSpriteMaterial
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.
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.
new(options: MaterialOptions): SpriteMaterial destroy(): void setTexture(name: string, texture: Texture | RenderTexture): this setUniform(name: string, value: UniformValue): this from(source: ShaderSource, options?: Omit<MaterialOptions, "shader">): SpriteMaterial from(glslVertex: string, glslFragment: string, options?: object): SpriteMaterial blendMode: BlendModes sampler: SamplerOptions | null shader: ShaderSource target: "sprite" textures: Record<string, Texture | RenderTexture> uniforms: Record<string, UniformValue> bindKey: number pipelineKey: number