comparison tests/test_vulkan_wrapper.nim @ 786:956e9c7e36da

fix: make stuff halfway working
author Sam <sam@basx.dev>
date Mon, 21 Aug 2023 00:17:16 +0700
parents 1880ab140165
children 4ec852355750
comparison
equal deleted inserted replaced
785:1880ab140165 786:956e9c7e36da
196 newScene("different mesh types", scene_different_mesh_types(), transformAttribute=""), 196 newScene("different mesh types", scene_different_mesh_types(), transformAttribute=""),
197 newScene("primitives", scene_primitives(), transformAttribute=""), 197 newScene("primitives", scene_primitives(), transformAttribute=""),
198 newScene("flag", scene_multi_material(), transformAttribute=""), 198 newScene("flag", scene_multi_material(), transformAttribute=""),
199 ] 199 ]
200 200
201 scenes[3].addShaderGlobal("color", newVec4f(1, 0, 1))
201 for scene in scenes.mitems: 202 for scene in scenes.mitems:
202 scene.addShaderGlobal("time", 0.0'f32) 203 scene.addShaderGlobal("time", 0.0'f32)
203 engine.addScene(scene) 204 engine.addScene(scene)
205
204 206
205 # MAINLOOP 207 # MAINLOOP
206 echo "Setup successfull, start rendering" 208 echo "Setup successfull, start rendering"
207 for i in 0 ..< 3: 209 for i in 0 ..< 3:
208 for scene in scenes.mitems: 210 for scene in scenes.mitems: