Просмотр исходного кода

RectAreaLightNode: Fix `update()`. (#29771)

Michael Herzog 1 год назад
Родитель
Сommit
83c3f7259f
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      src/nodes/lighting/RectAreaLightNode.js

+ 3 - 0
src/nodes/lighting/RectAreaLightNode.js

@@ -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();
@@ -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 ) {

粤ICP备19079148号