Update: CC - Demo New - Key Up (194yv3pctj.js) 197 bytes modified

beta.r3js.org
-=yb4f310 2018-02-12 13:04:18 +01:00
parent 6e1b93d45b
commit 174b815be8
1 changed files with 5 additions and 0 deletions

View File

@ -10,6 +10,7 @@ if (!this.initialized) {
this.imageEarth = this.entityLoaded.imageEarth;
this.meshBox = this.entityLoaded.meshBox;
this.meshImageGrid = this.entityLoaded.meshImageGrid;
this.boxGeometry = this.entityLoaded.boxGeometry;
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.meshImageGrid.geometry.instance = this.instancedGeometry.instance;
this.meshImageGrid.materials[0].instance.needsUpdate = true;
console.log('got data');
}