File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/assets/shaders/scene3d Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 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
4343layout(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
4646layout(local_size_x = MESH_GROUP_SIZE, local_size_y = 1, local_size_z = 1) in;
4747layout(triangles, max_vertices = MAX_MESHLET_VERTICES, max_primitives = MAX_MESHLET_PRIMITIVES) out;
You can’t perform that action at this time.
0 commit comments