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

Fat surfaces

parent 597f2fe0
No related branches found
No related tags found
No related merge requests found
Pipeline #11765 passed
...@@ -286,7 +286,7 @@ __global__ void nickRenderKernel(ftl::voxhash::HashData hashData, RayCastData ra ...@@ -286,7 +286,7 @@ __global__ void nickRenderKernel(ftl::voxhash::HashData hashData, RayCastData ra
bool is_surface = ((params.m_flags & kShowBlockBorders) && edgeX + edgeY + edgeZ >= 2); bool is_surface = ((params.m_flags & kShowBlockBorders) && edgeX + edgeY + edgeZ >= 2);
if (is_surface) voxels[j].color = make_uchar3(255,(vp.x == 0 && vp.y == 0 && vp.z == 0) ? 255 : 0,0); if (is_surface) voxels[j].color = make_uchar3(255,(vp.x == 0 && vp.y == 0 && vp.z == 0) ? 255 : 0,0);
if (!is_surface && voxels[j].sdf < 0.0f) return; if (!is_surface && voxels[j].sdf >= 0.0f) return;
//if (vp.z == 7) voxels[j].color = make_uchar3(0,255,(voxels[j].sdf < 0.0f) ? 255 : 0); //if (vp.z == 7) voxels[j].color = make_uchar3(0,255,(voxels[j].sdf < 0.0f) ? 255 : 0);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment