Lamp beta
Interface of @v12-engine/render
ts
export interface LampA lamp: every field written in place by who owns it, read each frame
Members
angle
ts
angle: number;A spot's whole angle, in radians
colour
ts
colour: [number, number, number];Its light's colour
direction
ts
direction?: [number, number, number];A spot's way (any length); a point's where left out
focus
ts
focus: number;How fast a spot dims away from its middle: the power of the cosine
intensity
ts
intensity: number;How bright: its colour is multiplied by it
on
ts
on: boolean;Whether it is lit: one that is not costs nothing
position
ts
position: [number, number, number];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
remove
ts
remove(): void;Taken out for good
specular
ts
specular: number;How much of its colour its highlights have, on what has highlights