Update: CC - Demo New - Key Up (194yv3pctj.js) 197 bytes modified
parent
6e1b93d45b
commit
174b815be8
|
@ -10,6 +10,7 @@ if (!this.initialized) {
|
||||||
this.imageEarth = this.entityLoaded.imageEarth;
|
this.imageEarth = this.entityLoaded.imageEarth;
|
||||||
|
|
||||||
this.meshBox = this.entityLoaded.meshBox;
|
this.meshBox = this.entityLoaded.meshBox;
|
||||||
|
this.meshImageGrid = this.entityLoaded.meshImageGrid;
|
||||||
|
|
||||||
this.boxGeometry = this.entityLoaded.boxGeometry;
|
this.boxGeometry = this.entityLoaded.boxGeometry;
|
||||||
this.instancedGeometry = this.entityLoaded.instancedGeometry;
|
this.instancedGeometry = this.entityLoaded.instancedGeometry;
|
||||||
|
@ -49,6 +50,10 @@ if (data.code === 'KeyL') {
|
||||||
|
|
||||||
this.instancedGeometry.instance.addAttribute('instancePosition', new THREE.InstancedBufferAttribute( new Float32Array(positions), 3));
|
this.instancedGeometry.instance.addAttribute('instancePosition', new THREE.InstancedBufferAttribute( new Float32Array(positions), 3));
|
||||||
|
|
||||||
|
this.meshImageGrid.geometry.instance = this.instancedGeometry.instance;
|
||||||
|
|
||||||
|
this.meshImageGrid.materials[0].instance.needsUpdate = true;
|
||||||
|
|
||||||
console.log('got data');
|
console.log('got data');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue