No mod in structure table
This commit is contained in:
@@ -4,13 +4,6 @@ public struct Ray
|
||||
{
|
||||
public float3 origin;
|
||||
public float3 direction;
|
||||
public float3 invDirection;
|
||||
}
|
||||
|
||||
public struct Span
|
||||
{
|
||||
public float t0;
|
||||
public float t1;
|
||||
}
|
||||
|
||||
public struct Cell
|
||||
@@ -31,7 +24,7 @@ public interface IStructure
|
||||
public associatedtype Cursor;
|
||||
|
||||
/// Begins tracing a certain ray, with a span
|
||||
public Cursor begin(Ray worldRay, Span s);
|
||||
public Cursor begin(Ray worldRay);
|
||||
|
||||
/// Returns whether it hits, updating the state, and returning a cell structure if hit.
|
||||
public bool next(inout Cursor c, out Cell cell); // next populated cell along the ray
|
||||
@@ -67,10 +60,10 @@ public struct Tracer<S : IStructure, C : IVoxelCache, L : ILodPolicy>
|
||||
public C cache;
|
||||
public L lod;
|
||||
|
||||
public bool trace(uint32_t thread_id, out Hit h, Ray r, Span s)
|
||||
public bool trace(uint32_t thread_id, out Hit h, Ray r)
|
||||
{
|
||||
/* loop: next cell -> cache.trace -> early out */
|
||||
S.Cursor cursor = this.structure.begin(r, s);
|
||||
S.Cursor cursor = this.structure.begin(r);
|
||||
Cell cell;
|
||||
|
||||
h.hit = false;
|
||||
|
||||
Reference in New Issue
Block a user