Update: CC - Demo New - Entity Loaded (tuby5lj4di.js) 57 bytes modified
parent
26d428266e
commit
5b13fd264a
|
@ -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'],
|
||||
|
|
Loading…
Reference in New Issue