diff options
author | Ilion Beyst <ilion.beyst@gmail.com> | 2022-07-18 07:40:01 +0200 |
---|---|---|
committer | Ilion Beyst <ilion.beyst@gmail.com> | 2022-07-18 07:40:01 +0200 |
commit | 270476e0387201c85aa686254eb2f4a33205b7d1 (patch) | |
tree | eea7f1bead11ff118407813173f69b9b9289a888 /web/pw-visualizer/src/webgl | |
parent | e5cb04208f2287f5ba4f0f70367c0f8190e0082e (diff) | |
download | planetwars.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.ts | 2 |
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); |