Mercurial > games > semicongine
diff examples/E04_input.nim @ 247:beb41c93aa3f
fix: gltf loading
author | Sam <sam@basx.dev> |
---|---|
date | Tue, 23 May 2023 01:05:06 +0700 |
parents | f3912838cd69 |
children | ad078e26a1c7 |
line wrap: on
line diff
--- a/examples/E04_input.nim Mon May 22 19:27:17 2023 +0700 +++ b/examples/E04_input.nim Tue May 23 01:05:06 2023 +0700 @@ -179,10 +179,10 @@ while myengine.updateInputs() == Running: if myengine.windowWasResized(): setShaderGlobal(scene, "projection", - ortho[float32]( - 0'f32, float32(myengine.getWindow().size[0]), - 0'f32, float32(myengine.getWindow().size[1]), - 0'f32, 1'f32, + ortho( + 0, float32(myengine.getWindow().size[0]), + 0, float32(myengine.getWindow().size[1]), + 0, 1, ) ) let