diff tests/test_vulkan_wrapper.nim @ 327:a63bd8f29252

add: make same attribute for different shaders work correctly, yipie!
author Sam <sam@basx.dev>
date Fri, 25 Aug 2023 01:09:23 +0700
parents 4ec852355750
children 8d0ffcacc7e3
line wrap: on
line diff
--- a/tests/test_vulkan_wrapper.nim	Fri Aug 25 00:29:51 2023 +0700
+++ b/tests/test_vulkan_wrapper.nim	Fri Aug 25 01:09:23 2023 +0700
@@ -189,7 +189,7 @@
       outputs=[attr[Vec4f]("color")],
       uniforms=[attr[Vec4f]("color")],
       vertexCode="""gl_Position = vec4(position, 1.0) * transform; outcolor = Uniforms.color;""",
-      fragmentCode="color = vec4(0, 0, 1, 1);",
+      fragmentCode="color = outcolor;",
     )
   engine.initRenderer({
     "my_material": shaderConfiguration1,