Update: CC - Demo New - Mouse Move (n9evs68jpd.js) 135 bytes modified
parent
78e122fe7a
commit
08d77c8e87
|
@ -7,6 +7,8 @@ if (!this.initialized) {
|
||||||
this.raycaster = this.entityLoaded.raycaster;
|
this.raycaster = this.entityLoaded.raycaster;
|
||||||
this.camera = this.entityLoaded.camera;
|
this.camera = this.entityLoaded.camera;
|
||||||
this.meshImageGrid = this.entityLoaded.meshImageGrid;
|
this.meshImageGrid = this.entityLoaded.meshImageGrid;
|
||||||
|
this.meshBox = this.entityLoaded.meshBox;
|
||||||
|
|
||||||
this.initialized = true;
|
this.initialized = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -31,6 +33,9 @@ var cursorPosition = this.camera.position.clone().add(
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
this.meshBox.position.setFrom(cursorPosition);
|
||||||
|
this.meshBox.updateInstance('position');
|
||||||
|
|
||||||
this.meshImageGrid.lookAt(cursorPosition);
|
this.meshImageGrid.lookAt(cursorPosition);
|
||||||
|
|
||||||
//@ sourceURL=mouseMove.js
|
//@ sourceURL=mouseMove.js
|
Loading…
Reference in New Issue