Mercurial > games > semicongine
diff examples/E10_pong.nim @ 714:5f7ec8d1bd33
fix: API changes
author | sam <sam@basx.dev> |
---|---|
date | Wed, 24 May 2023 01:31:21 +0700 |
parents | 3b00747b2451 |
children | 95281f2db400 |
line wrap: on
line diff
--- a/examples/E10_pong.nim Wed May 24 01:31:02 2023 +0700 +++ b/examples/E10_pong.nim Wed May 24 01:31:21 2023 +0700 @@ -56,7 +56,7 @@ # set up rendering myengine.setRenderer(myengine.gpuDevice.simpleForwardRenderPass(vertexCode, fragmentCode, clearColor=backgroundColor)) - myengine.addScene(level, vertexInput, transformAttribute="transform") + myengine.addScene(level, vertexInput, @[], transformAttribute="transform") level.addShaderGlobal("projection", Unit4f32) var