diff examples/E02_squares.nim @ 278:b17df28712d6

did: adjust for small API change
author Sam <sam@basx.dev>
date Sat, 03 Jun 2023 13:44:17 +0700
parents 95281f2db400
children da0bd61abe91
line wrap: on
line diff
--- a/examples/E02_squares.nim	Sat Jun 03 13:32:15 2023 +0700
+++ b/examples/E02_squares.nim	Sat Jun 03 13:44:17 2023 +0700
@@ -82,7 +82,7 @@
   myengine.setRenderer(myengine.gpuDevice.simpleForwardRenderPass(vertexCode, fragmentCode))
 
   var scene = newScene("scene", newEntity("scene", newEntity("squares", squaremesh)))
-  myengine.addScene(scene, vertexInput, @[])
+  myengine.addScene(scene, vertexInput, @[], transformAttribute="")
   scene.addShaderGlobal("time", 0.0'f32)
   while myengine.updateInputs() == Running and not myengine.keyWasPressed(Escape):
     setShaderGlobal(scene, "time", getShaderGlobal[float32](scene, "time") + 0.0005'f)