r3-custom-code/194yv3pctj.js

31 lines
644 B
JavaScript
Raw Normal View History

if (!this.entityLoaded) {
return;
}
this.initialized = false;
if (!this.initialized) {
this.imageSpoon = this.entityLoaded.imageSpoon;
this.imageEarth = this.entityLoaded.imageEarth;
this.meshBox = this.entityLoaded.meshBox;
this.instancedGeometry = this.entityLoaded.instancedGeometry;
this.instancedGeometry.instance.attributes.position = this.boxGeometry.instance.attributes.position;
this.initialized = true;
console.log('key up initialized');
}
if (data.code === 'KeyL') {
var heightData = this.imageSpoon.getHeightData();
var instances = 128 * 128;
console.log('got data');
}
//@ sourceURL=ccKeyUp.js