Skip to content

Commit ea7b2f2

Browse files
committed
More work
1 parent 9a6009c commit ea7b2f2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/assets/shaders/scene3d/mesh.mesh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@
3838
#ifdef VOXELIZATION
3939
// Voxelization: vertices are duplicated per primitive (dominant-axis projection differs per triangle).
4040
// 3 vertices × MAX_MESHLET_PRIMITIVES. With 256 prims this would be 768 vertices which exceeds
41-
// typical maxMeshOutputVertices. Limit to 84 primitives × 3 = 252 vertices for voxelization.
42-
#define MAX_VOXEL_MESHLET_PRIMITIVES 84
41+
// typical maxMeshOutputVertices. Limit to 42 primitives × 3 = 126 vertices for voxelization.
42+
#define MAX_VOXEL_MESHLET_PRIMITIVES 42
4343
layout(local_size_x = MESH_GROUP_SIZE, local_size_y = 1, local_size_z = 1) in;
44-
layout(triangles, max_vertices = 252, max_primitives = MAX_VOXEL_MESHLET_PRIMITIVES) out;
44+
layout(triangles, max_vertices = 126, max_primitives = MAX_VOXEL_MESHLET_PRIMITIVES) out;
4545
#else
4646
layout(local_size_x = MESH_GROUP_SIZE, local_size_y = 1, local_size_z = 1) in;
4747
layout(triangles, max_vertices = MAX_MESHLET_VERTICES, max_primitives = MAX_MESHLET_PRIMITIVES) out;

0 commit comments

Comments
 (0)