MaterialDef beta
Interface of @v12-engine/client
export interface MaterialDefOne of a model's materials as its look says (ModelDef.material): the material of its file, lit as materials says, with what is given here over it (docs/world/materials.md)
Members
alpha
alpha?: number;How opaque it is, 0..1: 1 as made
backFaces
backFaces?: boolean;Both sides of its faces drawn and lit (a leaf, a cape), or one (false): as the file says when left out
color
color?: [number, number, number];Its colour, 0..1 each: the diffuse colour of a standard one, the albedo of a PBR one. Its picture's is multiplied by it
emissive
emissive?: [number, number, number];What it shines of itself, 0..1 each, in the dark too: glows past its edges as ModelDef.glow says
emissiveTexture
emissiveTexture?: string;A picture of what shines, by its path in textures/
metallic
metallic?: number;How metal it is, 0..1, a PBR one's
normalTexture
normalTexture?: string;A normal map, by its path in textures/: the model's tangents, where it has them, cost WebGPU three outputs (varyingBudget)
roughness
roughness?: number;How rough it is, 0..1, a PBR one's
specular
specular?: [number, number, number];Its highlights' colour, a standard material's: black (none) as the client makes them
texture
texture?: string;Its picture in place of the file's, by its path in textures/ (or an address)