Skip to main content

Class: LightCones

Owns the shared cone uniform storage. The game clears and refills it every frame (beginFrame + pushCone); every material shading with these uniforms (lightConeShading) sees the same values with zero copying.

Constructors​

constructor​

• new LightCones(): LightCones

Returns​

LightCones

Properties​

uniforms​

• Readonly uniforms: Object

Type declaration​

NameType
coneCountValueUniform<0>
conesArrayUniform<Vector4, "vec4">

Methods​

beginFrame​

▸ beginFrame(): void

Returns​

void


pushCone​

▸ pushCone(input): boolean

Parameters​

NameType
inputLightConeInput

Returns​

boolean