Minor cleanup
This commit is contained in:
parent
61d3d67df0
commit
6a219e7e45
1
game.js
1
game.js
@ -136,6 +136,7 @@ function memoize(f) {
|
|||||||
return g;
|
return g;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** From far to near. */
|
||||||
function _getChunkOrder(chunki, chunkj) {
|
function _getChunkOrder(chunki, chunkj) {
|
||||||
return [...function* () {
|
return [...function* () {
|
||||||
for (let i = chunki - 8; i < chunki + 8; i++) {
|
for (let i = chunki - 8; i < chunki + 8; i++) {
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
import * as se3 from './se3';
|
|
||||||
|
|
||||||
function memoize(f) {
|
function memoize(f) {
|
||||||
const memo = {};
|
const memo = {};
|
||||||
|
|
||||||
|
2
world.js
2
world.js
@ -1,4 +1,4 @@
|
|||||||
import { makeBufferFromFaces, makeFace} from "./geometry";
|
import { makeBufferFromFaces, makeFace } from "./geometry";
|
||||||
import { loadTexture, makeProgram } from "./gl";
|
import { loadTexture, makeProgram } from "./gl";
|
||||||
import * as se3 from './se3';
|
import * as se3 from './se3';
|
||||||
import { makeTerrain, random } from "./terrain";
|
import { makeTerrain, random } from "./terrain";
|
||||||
|
Loading…
Reference in New Issue
Block a user