|
@@ -1,12 +1,13 @@
|
|
|
-import { Geometry, Material, Mesh } from '../../../build/three.module';
|
|
|
import {
|
|
|
DataTexture,
|
|
|
Curve,
|
|
|
Uniform,
|
|
|
Material,
|
|
|
- InstancedMesh
|
|
|
+ InstancedMesh,
|
|
|
+ Geometry,
|
|
|
+ Mesh,
|
|
|
+ Vector3
|
|
|
} from '../../../src/Three';
|
|
|
-import { Flow } from './CurveModifier';
|
|
|
|
|
|
interface SplineUniform {
|
|
|
spineTexture: Uniform,
|
|
@@ -18,7 +19,7 @@ interface SplineUniform {
|
|
|
}
|
|
|
export function initSplineTexture( size?: number ): DataTexture;
|
|
|
|
|
|
-export function updateSplineTexture( texture: DataTexture, splineCurve: Curve, offset?: number );
|
|
|
+export function updateSplineTexture( texture: DataTexture, splineCurve: Curve<Vector3>, offset?: number );
|
|
|
|
|
|
export function getUniforms( splineTexture: DataTexture ): SplineUniform;
|
|
|
|
|
@@ -32,7 +33,7 @@ export class Flow {
|
|
|
object3D: Mesh;
|
|
|
splineTexure: DataTexture;
|
|
|
uniforms: SplineUniform;
|
|
|
- updateCurve( index: number, curve: Curve );
|
|
|
+ updateCurve( index: number, curve: Curve<Vector3> );
|
|
|
moveAlongCurve( amount: number );
|
|
|
|
|
|
}
|