Skip to content

LampOptions beta ​

Interface of @v12-engine/render

ts
export interface LampOptions

A lamp as it is added: where it stands, and what is left out taken as said beside each

Members ​

angle ​

ts
angle?: number;

A spot's whole angle, in radians (0.8)

colour ​

ts
colour?: Vec3;

Warm, [1, 0.78, 0.5], where left out

direction ​

ts
direction?: Vec3;

A spot's way; a point's where left out

focus ​

ts
focus?: number;

How fast a spot dims away from its middle: the power of the cosine (2)

intensity ​

ts
intensity?: number;

How bright: its colour is multiplied by it (1)

position ​

ts
position: Vec3;

Where it stands, in the world

range ​

ts
range?: number;

How far it lights, in cells: all of its light at the lamp, none at this distance (8)

specular ​

ts
specular?: number;

How much of its colour its highlights have, on what has highlights (0.25)