Skip to content

Material beta ​

Interface of @v12-engine/render

ts
export interface Material

What a batch is drawn with: a kind of material, its variant and what its bindings are bound to

Members ​

backFaceCulling ​

ts
readonly backFaceCulling: boolean;

Only the faces towards the camera

blend ​

ts
readonly blend: boolean;

Drawn over what is behind it, after everything that is not blended, and writing no depth

flags ​

ts
readonly flags: string;

The kind's variant (MaterialKind.view(flags)): '' for the plain one

kind ​

ts
readonly kind: MaterialKind;

The kind of material: its shaders and what it reads of a vertex and of a copy

order ​

ts
readonly order: 'first' | 'last' | number;

When in the view's pass it is drawn: with the rest, after every other thing that hides, or its place among the blended