Module for representing rect area lights as nodes.
Constructor
new RectAreaLightNode(light?)| Parameter | Type | Default Value |
|---|---|---|
| light? | any | null |
Constructs a new rect area light node.
| Accessor | Type | |
|---|---|---|
| get type | string | |
Properties
| Property | Type | Default Value | |
|---|---|---|---|
| halfHeight | UniformNode<vec3> | — | |
| halfWidth | UniformNode<vec3> | — | |
| Method | Type | |
|---|---|---|
| update | (frame: NodeFrame) => void | |
| setupDirectRectArea | (builder: any) => { lightColor: Node; lightPosition: UniformNode<…>; halfWidth: UniformNode<vec3>; halfHeight: UniformNode<vec3>; ltc_1: TextureNode; ltc_2: TextureNode; } | |
| setLTC | (ltc: RectAreaLightTexturesLib) => void | |
Extends
AnalyticLightNode