Skip to content

Commit 83c3f72

Browse files
authored
RectAreaLightNode: Fix update(). (#29771)
1 parent 09c38ab commit 83c3f72

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/nodes/lighting/RectAreaLightNode.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { renderGroup } from '../core/UniformGroupNode.js';
66

77
import { Matrix4 } from '../../math/Matrix4.js';
88
import { Vector3 } from '../../math/Vector3.js';
9+
import { NodeUpdateType } from '../core/constants.js';
910

1011
const _matrix41 = /*@__PURE__*/ new Matrix4();
1112
const _matrix42 = /*@__PURE__*/ new Matrix4();
@@ -27,6 +28,8 @@ class RectAreaLightNode extends AnalyticLightNode {
2728
this.halfHeight = uniform( new Vector3() ).setGroup( renderGroup );
2829
this.halfWidth = uniform( new Vector3() ).setGroup( renderGroup );
2930

31+
this.updateType = NodeUpdateType.RENDER;
32+
3033
}
3134

3235
update( frame ) {

0 commit comments

Comments
 (0)