wip
This commit is contained in:
@@ -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; }
|
||||||
|
|||||||
Reference in New Issue
Block a user