Update: CC - Demo New - Entity Loaded (tuby5lj4di.js) 23 bytes modified
parent
0d2d462ce5
commit
e4e8592800
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue