From 6a219e7e453d753394ffcccf3da7456ff1e698fa Mon Sep 17 00:00:00 2001 From: Paul Mathieu Date: Sun, 26 Dec 2021 12:41:34 -0800 Subject: [PATCH] Minor cleanup --- game.js | 1 + geometry.js | 2 -- world.js | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/game.js b/game.js index 5c7a5bd..7914d56 100644 --- a/game.js +++ b/game.js @@ -136,6 +136,7 @@ function memoize(f) { return g; } +/** From far to near. */ function _getChunkOrder(chunki, chunkj) { return [...function* () { for (let i = chunki - 8; i < chunki + 8; i++) { diff --git a/geometry.js b/geometry.js index f6dd064..45c66b6 100644 --- a/geometry.js +++ b/geometry.js @@ -1,5 +1,3 @@ -import * as se3 from './se3'; - function memoize(f) { const memo = {}; diff --git a/world.js b/world.js index 1344bc4..a80fe18 100644 --- a/world.js +++ b/world.js @@ -1,4 +1,4 @@ -import { makeBufferFromFaces, makeFace} from "./geometry"; +import { makeBufferFromFaces, makeFace } from "./geometry"; import { loadTexture, makeProgram } from "./gl"; import * as se3 from './se3'; import { makeTerrain, random } from "./terrain";