diff examples/E04_input.nim @ 708:3bb199dd45ba

fix: gltf loading
author Sam <sam@basx.dev>
date Tue, 23 May 2023 01:05:06 +0700
parents d84b2e88776a
children 5f7ec8d1bd33
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