diff semicongine/rendering/renderer.nim @ 1289:6e8f02e58606

add: ray aabb-box intersection algorithm
author sam <sam@basx.dev>
date Thu, 01 Aug 2024 05:42:25 +0700
parents 8abddbe609ce
children 6d0162bfe48a
line wrap: on
line diff
--- a/semicongine/rendering/renderer.nim	Tue Jul 30 17:23:41 2024 +0700
+++ b/semicongine/rendering/renderer.nim	Thu Aug 01 05:42:25 2024 +0700
@@ -691,8 +691,6 @@
       indexType = VK_INDEX_TYPE_UINT32
       elementCount = meshValue.data.len.uint32
 
-  assert elementCount > 0
-
   if indexType != VK_INDEX_TYPE_NONE_KHR:
     vkCmdBindIndexBuffer(
       commandBuffer,