Skip to content

Commit

Permalink
RectAreaLightNode: Fix update().
Browse files Browse the repository at this point in the history
  • Loading branch information
Mugen87 committed Oct 30, 2024
1 parent 09c38ab commit 5d0dbf5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/nodes/lighting/RectAreaLightNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { renderGroup } from '../core/UniformGroupNode.js';

import { Matrix4 } from '../../math/Matrix4.js';
import { Vector3 } from '../../math/Vector3.js';
import { NodeUpdateType } from '../core/constants.js';

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

this.updateType = NodeUpdateType.RENDER;

}

update( frame ) {
Expand Down

0 comments on commit 5d0dbf5

Please sign in to comment.