Draw terrain over traces
This commit is contained in:
1 parent
a0b2509f7e
commit
47e8b4b1ae
1 file changed
+2
-2
@@ -24,11 +24,11 @@ let trajectories = [];
|
|||||||
|
|
||||||
// Init layers
|
// Init layers
|
||||||
const sky = createSky(W, H);
|
const sky = createSky(W, H);
|
||||||
const terrain = createTerrain(W, H);
|
|
||||||
const traces = createCanvas(W, H);
|
const traces = createCanvas(W, H);
|
||||||
|
const terrain = createTerrain(W, H);
|
||||||
const foreground = createCanvas(W, H);
|
const foreground = createCanvas(W, H);
|
||||||
|
|
||||||
for (let c of [sky, terrain, traces, foreground]) {
|
for (let c of [sky, traces, terrain, foreground]) {
|
||||||
c.canvas.style.width = `${W * Z}px`;
|
c.canvas.style.width = `${W * Z}px`;
|
||||||
c.canvas.style.height = `${H * Z}px`;
|
c.canvas.style.height = `${H * Z}px`;
|
||||||
document.body.appendChild(c.canvas);
|
document.body.appendChild(c.canvas);
|
||||||
|
|||||||
Reference in new issue
Block a user