aboutsummaryrefslogtreecommitdiff
path: root/web/pw-visualizer/src/webgl
diff options
context:
space:
mode:
authorIlion Beyst <ilion.beyst@gmail.com>2022-07-18 07:40:01 +0200
committerIlion Beyst <ilion.beyst@gmail.com>2022-07-18 07:40:01 +0200
commit270476e0387201c85aa686254eb2f4a33205b7d1 (patch)
treeeea7f1bead11ff118407813173f69b9b9289a888 /web/pw-visualizer/src/webgl
parente5cb04208f2287f5ba4f0f70367c0f8190e0082e (diff)
downloadplanetwars.dev-270476e0387201c85aa686254eb2f4a33205b7d1.tar.xz
planetwars.dev-270476e0387201c85aa686254eb2f4a33205b7d1.zip
use texture for rendering planets
Diffstat (limited to 'web/pw-visualizer/src/webgl')
-rw-r--r--web/pw-visualizer/src/webgl/index.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/pw-visualizer/src/webgl/index.ts b/web/pw-visualizer/src/webgl/index.ts
index 1742713..8d785ef 100644
--- a/web/pw-visualizer/src/webgl/index.ts
+++ b/web/pw-visualizer/src/webgl/index.ts
@@ -57,8 +57,8 @@ async function main() {
return;
}
+ // TODO: do we still need this?
const mesh = await url_to_mesh("static/res/images/earth.svg");
- console.log(Math.max(...mesh.positions), Math.min(...mesh.positions));
const renderer = new Renderer();
const factory = await ShaderFactory.create_factory(assets.simpleFragmentShader, assets.simpleVertexShader);