Skip to content

Lamps beta ​

Interface of @v12-engine/render

ts
export interface Lamps

The renderer's lamps: lights at a place with a reach, none throwing a shadow, as many at once as max

Members ​

add ​

ts
add(options: LampOptions): Lamp;

Adds a lamp, lit, and gives it to be written to

binMs ​

ts
readonly binMs: number;

What binning the lamps into the screen's tiles took, in ms (over the last frames)

count ​

ts
readonly count: number;

How many there are, lit or not

lit ​

ts
readonly lit: number;

How many the last frame lit, and what binning them and sending them to the card took, in ms (over the last frames)

max ​

ts
readonly max: number;

How many light at once at most: the nearest along the view where there are more

sendMs ​

ts
readonly sendMs: number;

What sending the lamps and their tiles to the card took, in ms (over the last frames)