API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
interfaceMaterialOptions
Construction options shared by every Material. Only `shader` is required. What `uniforms` means follows from the shader source: on a source that declares a uniform schema it carries starting values for the declared fields, and textures must go in `textures`; on a source without one it is the mutable value record, where texture-valued entries also claim a texture binding.
import { MaterialOptions } from '@codexo/exojs'Construction options shared by every Material.
Only `shader` is required. What `uniforms` means follows from the shader source: on a source that declares a uniform schema it carries starting values for the declared fields, and textures must go in `textures`; on a source without one it is the mutable value record, where texture-valued entries also claim a texture binding.
textures?: Record<string, RenderTextureAn off-screen render target that can also be sampled as a texture. Combines RenderTarget (framebuffer attachment) with the sampler parameters of a Texture (sca… | TextureA static GPU texture sourced from an image, canvas, or video element. Holds the pixel source, its sampling state (ScaleModes, WrapModes) and its upload state (…>uniformBlocks?: B extends undefined ? never : UniformBlockInitialValuesPer-block starting values accepted when an instance is constructed.<Extract<B, Readonly<Record<string, UniformBlockOne explicitly named uniform block. Use this only with `uniformBlocks`, where the record key supplies both the shader-visible instance name and the runtime nam…<Readonly<Record<string, UniformFieldDeclarationOne entry of a UniformFields record.>>>>>>>