Skip to content

KindMaterialOptions beta ​

Interface of @v12-engine/render

ts
export interface KindMaterialOptions

What a kind's own material is made of

Members ​

backFaceCulling ​

ts
backFaceCulling?: boolean;

Only the faces towards the camera (true)

bindings ​

ts
bindings: readonly ComputeBindingDecl[];

The declarations of the kind's group of bindings (group 1) and what each is bound to, by name

blend ​

ts
blend?: boolean;

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

flags ​

ts
flags?: string;

The kind's variant (MaterialKind.view(flags))

order ​

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

When in the view's pass it is drawn: with the rest; after every other thing that hides (the ground, whose pixels are the dearest and are then shaded only where nothing covers them); or, blended, its place among the blended by a number, lowest first

resources ​

ts
resources: Record<string, unknown>;

What each of the bindings is bound to, by its name: a picture's resource, Uniforms.resource, a sampler