diff tests/test_materials.nim @ 353:61c5d5fe9d93

add: multi-material for meshes
author Sam <sam@basx.dev>
date Wed, 20 Sep 2023 22:35:04 +0700
parents 00231e014642
children f4f1474dc70a
line wrap: on
line diff
--- a/tests/test_materials.nim	Wed Sep 20 22:02:20 2023 +0700
+++ b/tests/test_materials.nim	Wed Sep 20 22:35:04 2023 +0700
@@ -21,7 +21,7 @@
 
 proc main() =
   var flag = rect()
-  flag.material = material
+  flag.materials = @[material]
   var scene = Scene(name: "main", meshes: @[flag])
   scene.addShaderGlobalArray("test2", @[0'f32, 0'f32])