Mercurial > games > semicongine
diff tests/test_mesh.nim @ 246:dcbd9f256f6a
fix: better defaults
author | Sam <sam@basx.dev> |
---|---|
date | Mon, 22 May 2023 19:27:17 +0700 |
parents | a19c9d089f25 |
children | beb41c93aa3f |
line wrap: on
line diff
--- a/tests/test_mesh.nim Mon May 22 19:21:05 2023 +0700 +++ b/tests/test_mesh.nim Mon May 22 19:27:17 2023 +0700 @@ -45,8 +45,8 @@ scene.addShaderGlobal("view", Unit4) scene.addShaderGlobal("model", Unit4) var - size = 1'f32 - elevation = -float32(PI) / 3'f32 + size = 0.3'f32 + elevation = 0'f32 azimut = 0'f32 currentScene = 0 @@ -65,11 +65,11 @@ currentScene = 5 if engine.keyWasPressed(NumberRowExtra3): - size = 1'f32 - elevation = -float32(PI) / 3'f32 + size = 0.3'f32 + elevation = 0'f32 azimut = 0'f32 - var ratio = engine.getWindow().size[0] / engine.getWindow().size[1] + let ratio = engine.getWindow().size[0] / engine.getWindow().size[1] size *= 1'f32 + engine.mouseWheel() * 0.05 azimut += engine.mouseMove().x / 180'f32 elevation -= engine.mouseMove().y / 180'f32