-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
In the kernel:
__kernel void buildRadixTree(__global struct BVHNode* nodeBuffer,__global uint2* mortonBuffer, uint leafCount)
{
uint idx = get_global_id(0);
if (idx < leafCount-2)
constructNode(nodeBuffer,mortonBuffer,leafCount, get_global_id(0));
}
it seems it should be "leafCount-1".
Otherwise there will be crash when you have one triangle on certain big distance in positive direction. In that case this triangle will be last element in morton code array.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels