MaterialOptions beta
Interface of @v12-engine/render
ts
export interface MaterialOptionsA standard material (Renderer.material): a colour, a picture, how its alpha is taken, the sun and the sky
Members
alpha
ts
alpha?: 'opaque' | 'cutout' | 'blend';opaque; cutout: the picture's alpha under alphaCutOff leaves a pixel out; blend: drawn after the rest, over it
alphaCutOff
ts
alphaCutOff?: number;The alpha under which a cutout material's pixel is left out (0.4)
backFaceCulling
ts
backFaceCulling?: boolean;Only the faces towards the camera (the default)
colour
ts
colour?: readonly [number, number, number];Its colour, the picture multiplied by it (white)
opacity
ts
opacity?: number;How much of what is behind shows through a blend material (1: none)
picture
ts
picture?: Picture;Its picture, by the geometry's uv: none where left out
receivesShadows
ts
receivesShadows?: boolean;Whether the sun's shadows fall on it (true)
unlit
ts
unlit?: boolean;Its colour as it is, no light