changeset 813:fb22fd8142b9

fix: tests
author Sam <sam@basx.dev>
date Wed, 20 Sep 2023 22:02:20 +0700
parents 27346eb7dd37
children 6a09fe5dc99b
files tests/test_collision.nim tests/test_materials.nim
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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):
--- 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,