diff --git a/tuby5lj4di.js b/tuby5lj4di.js index 5ff0133..6b100c8 100644 --- a/tuby5lj4di.js +++ b/tuby5lj4di.js @@ -76,8 +76,11 @@ this.scaleAttribute = null; /** * Generates new Attribute Data based on the image index according to 'width' and 'height' */ -GameLib.CustomCode.prototype.generateAttributeData = function(index, width, height) { +GameLib.CustomCode.prototype.generateAttributeData = function(index) { + var width = this.images[index].width; + var height = this.images[index].height; + var heightData = this.images[index].getHeightData(); var offsets = []; @@ -112,7 +115,7 @@ GameLib.CustomCode.prototype.generateAttributeData = function(index, width, heig */ GameLib.CustomCode.prototype.buildInstancedGeometry = function(index) { - this.attributeData = this.generateAttributeData(index, 128, 128); + this.attributeData = this.generateAttributeData(index); var uniforms = Object.assign( THREE.UniformsLib['lights'],