Mercurial > games > semicongine
diff examples/E02_squares.nim @ 714:5f7ec8d1bd33
fix: API changes
author | sam <sam@basx.dev> |
---|---|
date | Wed, 24 May 2023 01:31:21 +0700 |
parents | d84b2e88776a |
children | dcc12ab20a91 |
line wrap: on
line diff
--- a/examples/E02_squares.nim Wed May 24 01:31:02 2023 +0700 +++ b/examples/E02_squares.nim Wed May 24 01:31:21 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, @[]) 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)