Mercurial > games > semicongine
comparison tests/test_vulkan_wrapper.nim @ 789:fca6f069d59e
did: some cleanup
author | Sam <sam@basx.dev> |
---|---|
date | Fri, 25 Aug 2023 01:14:04 +0700 |
parents | 2d8a92171c9e |
children | 69e18f69713b |
comparison
equal
deleted
inserted
replaced
788:2d8a92171c9e | 789:fca6f069d59e |
---|---|
196 "my_special_material": shaderConfiguration2, | 196 "my_special_material": shaderConfiguration2, |
197 }.toTable) | 197 }.toTable) |
198 | 198 |
199 # INIT SCENES | 199 # INIT SCENES |
200 var scenes = [ | 200 var scenes = [ |
201 # Scene(name: "simple", meshes: scene_simple()), | 201 Scene(name: "simple", meshes: scene_simple()), |
202 # Scene(name: "different mesh types", meshes: scene_different_mesh_types()), | 202 Scene(name: "different mesh types", meshes: scene_different_mesh_types()), |
203 # Scene(name: "primitives", meshes: scene_primitives()), | 203 Scene(name: "primitives", meshes: scene_primitives()), |
204 # Scene(name: "flag", meshes: scene_flag()), | 204 Scene(name: "flag", meshes: scene_flag()), |
205 # Scene(name: "multimaterial", meshes: scene_multi_material(), materialIndexAttribute: ""), | |
206 Scene(name: "multimaterial", meshes: scene_multi_material()), | 205 Scene(name: "multimaterial", meshes: scene_multi_material()), |
207 ] | 206 ] |
208 | 207 |
209 scenes[0].addShaderGlobal("color", newVec4f(1, 0, 0, 1)) | 208 scenes[4].addShaderGlobal("color", newVec4f(1, 0, 0, 1)) |
210 for scene in scenes.mitems: | 209 for scene in scenes.mitems: |
211 scene.addShaderGlobal("time", 0.0'f32) | 210 scene.addShaderGlobal("time", 0.0'f32) |
212 engine.addScene(scene) | 211 engine.addScene(scene) |
213 | 212 |
214 # MAINLOOP | 213 # MAINLOOP |