Mercurial > games > semicongine
comparison tests/test_materials.nim @ 344:b83b3a1ccb05
fix: all tests
author | Sam <sam@basx.dev> |
---|---|
date | Mon, 11 Sep 2023 21:31:22 +0700 |
parents | 2533f524bdb6 |
children | 00231e014642 |
comparison
equal
deleted
inserted
replaced
343:c9b34b41a5a2 | 344:b83b3a1ccb05 |
---|---|
50 color = texture(tex1[0], uvout) * (1 - d) + texture(tex2[0], uvout) * d; | 50 color = texture(tex1[0], uvout) * (1 - d) + texture(tex2[0], uvout) * d; |
51 """, | 51 """, |
52 ) | 52 ) |
53 engine.initRenderer({ | 53 engine.initRenderer({ |
54 "material": shaderConfiguration1, | 54 "material": shaderConfiguration1, |
55 }.toTable) | 55 }) |
56 engine.addScene(scene) | 56 engine.addScene(scene) |
57 var t = cpuTime() | 57 var t = cpuTime() |
58 while engine.updateInputs() == Running and not engine.keyIsDown(Escape): | 58 while engine.updateInputs() == Running and not engine.keyIsDown(Escape): |
59 var d = float32(cpuTime() - t) | 59 var d = float32(cpuTime() - t) |
60 setShaderGlobalArray(scene, "test2", @[d, d * 2]) | 60 setShaderGlobalArray(scene, "test2", @[d, d * 2]) |