Class TriangleBvh.Entry

java.lang.Object
eu.svjatoslav.aukio.e3d.renderer.raster.gi.TriangleBvh.Entry
Enclosing class:
TriangleBvh

public static class TriangleBvh.Entry extends Object
One ray-traced triangle with cached data.
  • Field Details

    • polygon

      public final AbstractCoordinateShape polygon
      Backing polygon, or null for mesh-block triangles.
    • block

      public final TriangleMeshBlock block
      Owning mesh block, or null for object-backed triangles.
    • blockTri

      public final int blockTri
      Triangle index inside block, -1 for object-backed.
    • lightmap

      public Lightmap lightmap
      Lightmap when the polygon is a LightmappedShape, else null.
    • v

      public final float[] v
      Triangle vertices, world space: x0,y0,z0, x1,y1,z1, x2,y2,z2.
    • centroidX

      public float centroidX
    • centroidY

      public float centroidY
    • centroidZ

      public float centroidZ
    • minX

      public float minX
    • minY

      public float minY
    • minZ

      public float minZ
    • maxX

      public float maxX
    • maxY

      public float maxY
    • maxZ

      public float maxZ
    • normal

      public volatile float[] normal
      Unit surface normal, world space.
    • distance

      public float distance
      Squared distance from the camera at snapshot build (near-to-far bake order).
    • eligibleStages

      public volatile int eligibleStages
      Radius-gating mask, re-evaluated from the live camera position at every generation barrier: bit 0 = eligible for stage 2 (centroid bounce), bit 1 = stage 3 (coarse per-texel), bit 2 = stage 4 (fine refinement). All bits set when no radius is configured (the historical global bake).
  • Constructor Details

    • Entry

      public Entry(AbstractCoordinateShape polygon)
    • Entry

      public Entry(TriangleMeshBlock block, int blockTri)
      An entry tracing one triangle of a TriangleMeshBlock. Geometry is filled by the GI system from the block's flat arrays; the entry carries no per-triangle object reference.