Skip to main content

Class: LightCones

Owns the shared cone uniform storage. The game clears and refills it every frame (beginFrame + pushCone); every material that binds LightCones.uniformBindings sees the same values with zero copying.

Constructors​

constructor​

• new LightCones(): LightCones

Returns​

LightCones

Properties​

uniforms​

• Readonly uniforms: LightConeUniforms

Accessors​

uniformBindings​

• get uniformBindings(): Record<string, LightConeUniformBinding>

Returns​

Record<string, LightConeUniformBinding>

Methods​

beginFrame​

▸ beginFrame(): void

Returns​

void


pushCone​

▸ pushCone(input): boolean

Parameters​

NameType
inputLightConeInput

Returns​

boolean