diff examples/E04_input.nim @ 714:5f7ec8d1bd33

fix: API changes
author sam <sam@basx.dev>
date Wed, 24 May 2023 01:31:21 +0700
parents 3bb199dd45ba
children dcc12ab20a91
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