Skip to content
Snippets Groups Projects
Commit 42d1c67a authored by Nicolas Pope's avatar Nicolas Pope
Browse files

Re add weight decrement

parent 6f9d6493
No related branches found
No related tags found
No related merge requests found
......@@ -624,7 +624,7 @@ __global__ void starveVoxelsKernel(HashData hashData) {
//is typically exectued only every n'th frame
int weight = hashData.d_SDFBlocks[entry.ptr + threadIdx.x].weight;
weight = max(0, weight-1);
hashData.d_SDFBlocks[entry.ptr + threadIdx.x].weight = 1; //CHECK Remove to totally clear previous frame (Nick)
hashData.d_SDFBlocks[entry.ptr + threadIdx.x].weight = weight; //CHECK Remove to totally clear previous frame (Nick)
}
extern "C" void starveVoxelsKernelCUDA(HashData& hashData, const HashParams& hashParams)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment