Capítulo 142 de 859
Module for representing rect area lights as nodes.
updateType is set to NodeUpdateType.RENDER since the light relies on viewMatrix which might vary per render call.Constructor
| Signature |
|---|
new RectAreaLightNode( light : RectAreaLight ) |
Properties
| Property | Description |
|---|---|
.halfHeight : UniformNode.<vec3> | Uniform node representing the half height of the are light. |
.halfWidth : UniformNode.<vec3> | Uniform node representing the half width of the are light. |
.updateType : string | The updateType is set to NodeUpdateType.RENDER since the light relies on viewMatrix which might vary per render call. |
Methods
| Method | Description |
|---|---|
.update( frame : NodeFrame ) | Overwritten to updated rect area light specific uniforms. |