API reference

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

C

classMeshMaterial

@codexo/exojs / rendering / stable

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.

8
props
3
methods
0
events
Import
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.

Constructors 1
new(options: MaterialOptions): MeshMaterial
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: "mesh"
textures: Record<string, Texture | RenderTexture>
uniforms: Record<string, UniformValue>
bindKey: number
pipelineKey: number
Source