File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import Node from '../core/Node.js';
22import { varyingProperty } from '../core/PropertyNode.js' ;
33import { instancedBufferAttribute , instancedDynamicBufferAttribute } from './BufferAttributeNode.js' ;
44import { normalLocal , transformNormal } from './Normal.js' ;
5- import { positionLocal } from './Position.js' ;
5+ import { positionLocal , positionPrevious } from './Position.js' ;
66import { nodeProxy , vec3 , mat4 } from '../tsl/TSLBase.js' ;
77import { NodeUpdateType } from '../core/constants.js' ;
88import { buffer } from '../accessors/BufferNode.js' ;
@@ -163,6 +163,9 @@ class InstanceNode extends Node {
163163 const instancePosition = instanceMatrixNode . mul ( positionLocal ) . xyz ;
164164 positionLocal . assign ( instancePosition ) ;
165165
166+ const instancePositionPrevious = instanceMatrixNode . mul ( positionPrevious ) . xyz ;
167+ positionPrevious . assign ( instancePositionPrevious ) ;
168+
166169 // NORMAL
167170
168171 if ( builder . hasGeometryAttribute ( 'normal' ) ) {
You can’t perform that action at this time.
0 commit comments