# HG changeset patch # User Sam # Date 1695222140 -25200 # Node ID fb22fd8142b9542f733228c6ade9e690a7c6e5c0 # Parent 27346eb7dd37939cc128e5493cf19bb8c1cd3901 fix: tests diff -r 27346eb7dd37 -r fb22fd8142b9 tests/test_collision.nim --- a/tests/test_collision.nim Tue Sep 19 23:53:04 2023 +0700 +++ b/tests/test_collision.nim Wed Sep 20 22:02:20 2023 +0700 @@ -26,7 +26,7 @@ var engine = initEngine("Test collisions") - engine.initRenderer({"": shaderConfiguration}) + engine.initRenderer({"default material": shaderConfiguration}) engine.addScene(scene) while engine.updateInputs() == Running and not engine.keyIsDown(Escape): diff -r 27346eb7dd37 -r fb22fd8142b9 tests/test_materials.nim --- a/tests/test_materials.nim Tue Sep 19 23:53:04 2023 +0700 +++ b/tests/test_materials.nim Wed Sep 20 22:02:20 2023 +0700 @@ -5,7 +5,7 @@ let sampler = Sampler(magnification: VK_FILTER_NEAREST, minification: VK_FILTER_NEAREST) - (RT, WT, PT) = (hexToColorAlpha("A51931").asPixel, hexToColorAlpha("F4F5F8").asPixel, hexToColorAlpha("2D2A4A").asPixel) + (RT, WT, PT) = (toRGBA("A51931").asPixel, toRGBA("F4F5F8").asPixel, toRGBA("2D2A4A").asPixel) thai = Image(width: 7, height: 5, imagedata: @[ RT, RT, RT, RT, RT, RT, RT, WT, WT, WT, WT, WT, WT, WT,