diff examples/E04_input.nim @ 253:ad078e26a1c7

fix: API changes
author sam <sam@basx.dev>
date Wed, 24 May 2023 01:31:21 +0700
parents beb41c93aa3f
children 95281f2db400
line wrap: on
line diff
--- a/examples/E04_input.nim	Wed May 24 01:31:02 2023 +0700
+++ b/examples/E04_input.nim	Wed May 24 01:31:21 2023 +0700
@@ -172,7 +172,7 @@
 
   # set up rendering
   myengine.setRenderer(myengine.gpuDevice.simpleForwardRenderPass(vertexCode, fragmentCode, clearColor=newVec4f(0, 0, 0.5)))
-  myengine.addScene(scene, vertexInput, transformAttribute="transform")
+  myengine.addScene(scene, vertexInput, @[], transformAttribute="transform")
   scene.addShaderGlobal("projection", Unit4f32)
 
   # mainloop