API reference

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

I

interfaceMaterialOptions

@codexo/exojs / rendering / stable

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.

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

Properties6
Filter/wrap override for the drawable's base texture, or null to inherit that texture's sampler. Additional material textures keep their own sampler state. Defaults to null.
Starting values for the declared uniforms, or - on a source without a schema - the declared uniform slots and their initial values, whose names and scalar/texture kinds form a fixed construction-time schema.
Source