|
|
@@ -209,8 +209,8 @@ export class Flow {
|
|
|
constructor( mesh, numberOfCurves = 1 ) {
|
|
|
|
|
|
const obj3D = mesh.clone();
|
|
|
- const splineTexure = initSplineTexture( numberOfCurves );
|
|
|
- const uniforms = getUniforms( splineTexure );
|
|
|
+ const splineTexture = initSplineTexture( numberOfCurves );
|
|
|
+ const uniforms = getUniforms( splineTexture );
|
|
|
obj3D.traverse( function ( child ) {
|
|
|
|
|
|
if (
|
|
|
@@ -247,7 +247,7 @@ export class Flow {
|
|
|
this.curveLengthArray = new Array( numberOfCurves );
|
|
|
|
|
|
this.object3D = obj3D;
|
|
|
- this.splineTexure = splineTexure;
|
|
|
+ this.splineTexture = splineTexture;
|
|
|
this.uniforms = uniforms;
|
|
|
|
|
|
}
|
|
|
@@ -259,7 +259,7 @@ export class Flow {
|
|
|
this.uniforms.spineLength.value = curveLength;
|
|
|
this.curveLengthArray[ index ] = curveLength;
|
|
|
this.curveArray[ index ] = curve;
|
|
|
- updateSplineTexture( this.splineTexure, curve, index );
|
|
|
+ updateSplineTexture( this.splineTexture, curve, index );
|
|
|
|
|
|
}
|
|
|
|