|
|
@@ -23,6 +23,7 @@ export default class ArrowFlow extends THREE.MeshBasicMaterial {
|
|
|
offsetX = 0,
|
|
|
/** 0-1 */
|
|
|
offsetY = 1,
|
|
|
+ rotation = 0,
|
|
|
} = {}
|
|
|
) {
|
|
|
const t = new THREE.TextureLoader().load(texturePath);
|
|
|
@@ -30,6 +31,7 @@ export default class ArrowFlow extends THREE.MeshBasicMaterial {
|
|
|
t.wrapT = THREE.RepeatWrapping;
|
|
|
t.repeat = new THREE.Vector2(repeatX, repeatY);
|
|
|
t.offset = new THREE.Vector2(offsetX, offsetY);
|
|
|
+ t.rotation = rotation;
|
|
|
super({ map: t, transparent: true });
|
|
|
this.texture = t;
|
|
|
this.repeat = t.repeat;
|