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
Properties
uniforms
• Readonly uniforms: Object
Type declaration
| Name | Type |
|---|---|
coneCount | ValueUniform<0> |
cones | ArrayUniform<Vector4, "vec4"> |
Methods
beginFrame
▸ beginFrame(): void
Returns
void
pushCone
▸ pushCone(input): boolean
Parameters
| Name | Type |
|---|---|
input | LightConeInput |
Returns
boolean