Class TriangleBvh.Entry
java.lang.Object
eu.svjatoslav.aukio.e3d.renderer.raster.gi.TriangleBvh.Entry
- Enclosing class:
TriangleBvh
One ray-traced triangle with cached data.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal TriangleMeshBlockOwning mesh block, or null for object-backed triangles.final intTriangle index insideblock, -1 for object-backed.floatfloatfloatfloatSquared distance from the camera at snapshot build (near-to-far bake order).intRadius-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).Lightmap when the polygon is aLightmappedShape, else null.floatfloatfloatfloatfloatfloatfloat[]Unit surface normal, world space.final AbstractCoordinateShapeBacking polygon, or null for mesh-block triangles.final float[]Triangle vertices, world space: x0,y0,z0, x1,y1,z1, x2,y2,z2. -
Constructor Summary
ConstructorsConstructorDescriptionEntry(AbstractCoordinateShape polygon) Entry(TriangleMeshBlock block, int blockTri) An entry tracing one triangle of aTriangleMeshBlock. -
Method Summary
-
Field Details
-
polygon
Backing polygon, or null for mesh-block triangles. -
block
Owning mesh block, or null for object-backed triangles. -
blockTri
public final int blockTriTriangle index insideblock, -1 for object-backed. -
lightmap
Lightmap when the polygon is aLightmappedShape, else null. -
v
public final float[] vTriangle 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[] normalUnit surface normal, world space. -
distance
public float distanceSquared distance from the camera at snapshot build (near-to-far bake order). -
eligibleStages
public volatile int eligibleStagesRadius-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
-
Entry
An entry tracing one triangle of aTriangleMeshBlock. Geometry is filled by the GI system from the block's flat arrays; the entry carries no per-triangle object reference.
-