This commit is contained in:
Piotr Baja
2024-01-25 20:53:17 +01:00
parent dac7c52912
commit 729daa1503
+1
View File
@@ -98,6 +98,7 @@ HitResult castNodes(Ray ray, uint maxSteps)
incAxis = step(dist.xyz, dist.yzx) * step(dist.xyz, dist.zxy); incAxis = step(dist.xyz, dist.yzx) * step(dist.xyz, dist.zxy);
dist += incAxis * raySign * rayInv; dist += incAxis * raySign * rayInv;
pos += incAxis * raySign; pos += incAxis * raySign;
t = dot(dist, incAxis);
// Outside bounds // Outside bounds
// if(pos.x < 0 || pos.y < 0 || pos.z < 0) { break; } // if(pos.x < 0 || pos.y < 0 || pos.z < 0) { break; }