diff tests/test_vulkan_wrapper.nim @ 190:8f2eaf0d2808

add: uncomment some of the prepared texture code, nice interface for scene-global shader values (aka uniforms
author Sam <sam@basx.dev>
date Fri, 05 May 2023 23:57:56 +0700
parents df92519d4d68
children 81dc05b46b85
line wrap: on
line diff
--- a/tests/test_vulkan_wrapper.nim	Fri May 05 23:45:50 2023 +0700
+++ b/tests/test_vulkan_wrapper.nim	Fri May 05 23:57:56 2023 +0700
@@ -157,8 +157,7 @@
         if engine.updateInputs() != Running or engine.keyIsDown(Escape):
           engine.destroy()
           return
-        var time = scene.getShaderGlobal("time")
-        setValue[float32](time, get[float32](time) + 0.0005)
+        setShaderGlobal(scene, "time", getShaderGlobal[float32](scene, "time") + 0.0005'f)
         engine.renderScene(scene)
   echo "Rendered ", engine.framesRendered, " frames"
   echo "Processed ", engine.eventsProcessed, " events"