diff tests/test_materials.nim @ 1136:71315636ba82

did: refactor naming in tons of places
author sam <sam@basx.dev>
date Tue, 04 Jun 2024 16:51:50 +0700
parents 74957cbf589b
children a4aa9f374d44
line wrap: on
line diff
--- a/tests/test_materials.nim	Mon Jun 03 16:05:17 2024 +0700
+++ b/tests/test_materials.nim	Tue Jun 04 16:51:50 2024 +0700
@@ -35,7 +35,7 @@
   var flag = rect()
   flag.material = material
   var scene = Scene(name: "main", meshes: @[flag])
-  scene.addShaderGlobalArray("test2", @[newVec4f(), newVec4f()])
+  scene.addShaderGlobalArray("test2", @[NewVec4f(), NewVec4f()])
 
   var engine = initEngine("Test materials")
 
@@ -70,7 +70,7 @@
   var t = cpuTime()
   while engine.UpdateInputs() and not KeyIsDown(Escape):
     var d = float32(cpuTime() - t)
-    setShaderGlobalArray(scene, "test2", @[newVec4f(d), newVec4f(d * 2)])
+    setShaderGlobalArray(scene, "test2", @[NewVec4f(d), NewVec4f(d * 2)])
     engine.renderScene(scene)
   engine.destroy()