Update: CC - Demo New - Entity Loaded (tuby5lj4di.js) 57 bytes modified

beta.r3js.org
-=yb4f310 2018-03-19 14:40:12 +01:00
parent 26d428266e
commit 5b13fd264a
1 changed files with 5 additions and 2 deletions

View File

@ -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'],