Skip to content

FoliageLight beta ​

Interface of @v12-engine/client

ts
export interface FoliageLight

How grass is lit (FoliageLook.light)

Members ​

footFade ​

ts
footFade?: number;

How far up from the foot it fades into the ground, of its height: 0 when left out

normals ​

ts
normals?: 'up' | 'true';

Lit as if every blade faced up (up, soft and even: when left out), or by the way each faces (true: a mesh of its own)

shadows ​

ts
shadows?: boolean;

Whether shadows fall on it: no when left out, as the grass always was (a mesh of its own a chunk where styles differ)

specular ​

ts
specular?: number;

How much it shines, 0 for not at all: 0 when left out

translucency ​

ts
translucency?: number;

How much light comes through the tips from behind, 0 to 1: 0 when left out