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

beta.r3js.org
-=yb4f310 2018-02-16 12:58:04 +01:00
parent 722c1a9ae0
commit 8d8ca77760
1 changed files with 4 additions and 6 deletions

View File

@ -224,26 +224,24 @@ GameLib.CustomCode.prototype.updateAttributeArrays = function(alpha) {
var offsets = [];
var scales = [];
var v = new THREE.Vector3();
for (i = 0; i < this.updateInformation.length; i++) {
offset = this.updateInformation[i].offset;
scale = this.updateInformation[i].scale;
v = offset.current.lerp(
offset.current.lerp(
offset.target,
alpha
);
offsets.push(v.x, v.y, v.z);
offsets.push(offset.x, offset.y, offset.z);
v = scale.current.lerp(
scale.current.lerp(
scale.target,
alpha
);
scales.push(v.x, v.y, v.z);
scales.push(scale.x, scale.y, scale.z);
}
this.offsetAttribute.setArray(new Float32Array(offsets));