From e4e8592800e7847b0c7a46f2f11d7128cbb222b9 Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Mon, 19 Feb 2018 12:00:12 +0100 Subject: [PATCH] Update: CC - Demo New - Entity Loaded (tuby5lj4di.js) 23 bytes modified --- tuby5lj4di.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tuby5lj4di.js b/tuby5lj4di.js index 8b2f0b2..b070499 100644 --- a/tuby5lj4di.js +++ b/tuby5lj4di.js @@ -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);