API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
classMeshMaterial
Material specialization for Mesh drawables. Carries the mesh contract conceptually: fixed vertex attribute locations (0 = position, 1 = texcoord, 2 = color), the auto-bound uniforms `u_projection`/`u_translation`/`u_tint`/`u_texture`, and the WGSL group(0)=mesh-uniforms / group(1)=texture / group(2)=user binding scheme. Renderer wiring is added in a later phase.
import { MeshMaterial } from '@codexo/exojs' Material specialization for Mesh drawables.
Carries the mesh contract conceptually: fixed vertex attribute locations (0 = position, 1 = texcoord, 2 = color), the auto-bound uniforms `u_projection`/`u_translation`/`u_tint`/`u_texture`, and the WGSL group(0)=mesh-uniforms / group(1)=texture / group(2)=user binding scheme. Renderer wiring is added in a later phase.
new(options: MaterialOptions): MeshMaterial destroy(): void setTexture(name: string, texture: RenderTexture | Texture): this setUniform(name: string, value: UniformValue): this blendMode: BlendModes sampler: SamplerOptions | null shader: ShaderSource target: "mesh" textures: Record<string, Texture | RenderTexture> uniforms: Record<string, UniformValue> bindKey: number pipelineKey: number