Skip to content

Commit

Permalink
apply immutable node
Browse files Browse the repository at this point in the history
  • Loading branch information
sunag committed Aug 2, 2024
1 parent b09e6fe commit 2495754
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/webgpu_mrt.html
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
output: output,
normal: transformedNormalWorld.directionToColor(),
diffuse: diffuseColor,
velocity: velocity()
velocity: velocity
} ) );

// optimize textures
Expand Down
4 changes: 2 additions & 2 deletions src/nodes/accessors/VelocityNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { addNodeClass } from '../core/Node.js';
import TempNode from '../core/TempNode.js';
import { modelWorldMatrix } from './ModelNode.js';
import { positionLocal } from './PositionNode.js';
import { nodeProxy } from '../shadernode/ShaderNode.js';
import { nodeImmutable } from '../shadernode/ShaderNode.js';
import { NodeUpdateType } from '../core/constants.js';
import { Matrix4 } from '../../math/Matrix4.js';
import { uniform } from '../core/UniformNode.js';
Expand Down Expand Up @@ -81,6 +81,6 @@ function getPreviousModelMatrix( object ) {

export default VelocityNode;

export const velocity = nodeProxy( VelocityNode );
export const velocity = nodeImmutable( VelocityNode );

addNodeClass( 'VelocityNode', VelocityNode );

0 comments on commit 2495754

Please sign in to comment.