We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c428695 commit acc72a4Copy full SHA for acc72a4
Assets/Shaders/DirectVolumeRenderingShader.shader
@@ -207,7 +207,7 @@
207
const float t = iStep * stepSize;
208
const float3 currPos = rayStartPos + rayDir * t;
209
// Stop when we are outside the box
210
- if (currPos.x < 0.0f || currPos.x >= 1.0f || currPos.y < 0.0f || currPos.y > 1.0f || currPos.z < 0.0f || currPos.z > 1.0f) // TODO: avoid branch?
+ if (currPos.x < -0.0001f || currPos.x >= 1.0001f || currPos.y < -0.0001f || currPos.y > 1.0001f || currPos.z < -0.0001f || currPos.z > 1.0001f) // TODO: avoid branch?
211
break;
212
213
#ifdef SLICEPLANE_ON
0 commit comments