Mercurial > games > semicongine
changeset 707:3742bba2293f
fix: better defaults
author | Sam <sam@basx.dev> |
---|---|
date | Mon, 22 May 2023 19:27:17 +0700 |
parents | 0936ae49f0c4 |
children | 3bb199dd45ba |
files | tests/test_mesh.nim |
diffstat | 1 files changed, 5 insertions(+), 5 deletions(-) [+] |
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