Mercurial > games > semicongine
comparison tests/test_materials.nim @ 1135:74957cbf589b
fix: update tests according to some API renaming
author | sam <sam@basx.dev> |
---|---|
date | Mon, 03 Jun 2024 16:05:17 +0700 |
parents | 73b572f82a1f |
children | 71315636ba82 |
comparison
equal
deleted
inserted
replaced
1134:055eb17ce31e | 1135:74957cbf589b |
---|---|
66 engine.initRenderer({ | 66 engine.initRenderer({ |
67 doubleTextureMaterial: shaderConfiguration1, | 67 doubleTextureMaterial: shaderConfiguration1, |
68 }) | 68 }) |
69 engine.loadScene(scene) | 69 engine.loadScene(scene) |
70 var t = cpuTime() | 70 var t = cpuTime() |
71 while engine.updateInputs() and not keyIsDown(Escape): | 71 while engine.UpdateInputs() and not KeyIsDown(Escape): |
72 var d = float32(cpuTime() - t) | 72 var d = float32(cpuTime() - t) |
73 setShaderGlobalArray(scene, "test2", @[newVec4f(d), newVec4f(d * 2)]) | 73 setShaderGlobalArray(scene, "test2", @[newVec4f(d), newVec4f(d * 2)]) |
74 engine.renderScene(scene) | 74 engine.renderScene(scene) |
75 engine.destroy() | 75 engine.destroy() |
76 | 76 |