# HG changeset patch # User Sam # Date 1684758437 -25200 # Node ID 3742bba2293f6563f700622071dff06d4e946b4e # Parent 0936ae49f0c4cd1eaf6be21f97b16da071ff503a fix: better defaults diff -r 0936ae49f0c4 -r 3742bba2293f 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