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

beta.r3js.org
-=yb4f310 2018-02-19 12:00:12 +01:00
parent 0d2d462ce5
commit e4e8592800
1 changed files with 6 additions and 3 deletions

View File

@ -77,12 +77,15 @@ GameLib.CustomCode.prototype.generateAttributeData = function(index, width, heig
var scales = [];
var orientations = [];
var x, y, z, scale = 0;
var x, y, z, scale, h = 0;
for (x = 0; x < width; x++) {
for (y = 0; y < height; y++) {
z = heightData[(y * width) + x] * 10;
scale = z * 0.19;
h = heightData[(y * width) + x];
z = h * 20;
scale = h * 1.9;
offsets.push((x - 64) * 2, (64 - y) * 2, z);
orientations.push(0, 0, 0, 1);
scales.push(scale, scale, scale);