diff tests/test_materials.nim @ 979:6406766a222d

fix: tests
author sam <sam@basx.dev>
date Sat, 06 Apr 2024 15:27:09 +0700
parents 91e018270832
children a40bb0a48e07
line wrap: on
line diff
--- a/tests/test_materials.nim	Fri Apr 05 23:19:45 2024 +0700
+++ b/tests/test_materials.nim	Sat Apr 06 15:27:09 2024 +0700
@@ -50,8 +50,8 @@
       ],
       uniforms = [attr[float32]("test2", arrayCount = 2)],
       samplers = @[
-        attr[Texture]("tex1", arrayCount = 1),
-        attr[Texture]("tex2", arrayCount = 1),
+        attr[Texture]("tex1"),
+        attr[Texture]("tex2"),
       ],
       outputs = [attr[Vec4f]("color")],
       vertexCode = """
@@ -59,7 +59,7 @@
       uvout = uv;""",
       fragmentCode = """
       float d = sin(Uniforms.test2[0]) * 0.5 + 0.5;
-      color = texture(tex1[0], uvout) * (1 - d) + texture(tex2[0], uvout) * d;
+      color = texture(tex1, uvout) * (1 - d) + texture(tex2, uvout) * d;
       """,
     )
   engine.initRenderer({