# HG changeset patch # User Sam # Date 1684758437 -25200 # Node ID dcbd9f256f6a6657ee3c7f7ba974b550d0461647 # Parent a19c9d089f25278e19b177bf94628796537411da fix: better defaults diff -r a19c9d089f25 -r dcbd9f256f6a tests/test_mesh.nim --- 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