diff semiconginev2/rendering/renderer.nim @ 1247:c15770761865

add: gltf loading test, gltf loading for materials
author sam <sam@basx.dev>
date Wed, 24 Jul 2024 23:26:34 +0700
parents 42eeb59f3a43
children 01e9f41d35b1
line wrap: on
line diff
--- a/semiconginev2/rendering/renderer.nim	Wed Jul 24 20:12:19 2024 +0700
+++ b/semiconginev2/rendering/renderer.nim	Wed Jul 24 23:26:34 2024 +0700
@@ -470,7 +470,12 @@
 
   image.vk = svkCreate2DImage(image.width, image.height, format, usage, image.samples)
   renderData.images.add image.vk
-  image.sampler = createSampler(magFilter = image.interpolation, minFilter = image.interpolation)
+  image.sampler = createSampler(
+    magFilter = image.magInterpolation,
+    minFilter = image.minInterpolation,
+    addressModeU = image.wrapU,
+    addressModeV = image.wrapV,
+  )
   renderData.samplers.add image.sampler
 
   let memoryRequirements = image.vk.svkGetImageMemoryRequirements()