java.lang.Object
de.grogra.gpuflux.scene.BVH.BVHTree
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble
getRoot()
int
static double
getSAH
(double area, double leftArea, double rightArea, int leftPrims, int rightPrims) Integer[]
void
prune()
void
serializeBIH
(ComputeByteBuffer computeByteBuffer, int primitiveIdxOffset) void
serializeBVH
(ComputeByteBuffer computeByteBuffer, int primitiveIdxOffset)
-
Field Details
-
TPRIM
public static final double TPRIM- See Also:
-
TAABB
public static final float TAABB- See Also:
-
MAX_DEPTH
public static final int MAX_DEPTH- See Also:
-
-
Constructor Details
-
BVHTree
-
-
Method Details
-
getRoot
-
getBounds
-
getVolumeOrdering
-
getRootIdx
public int getRootIdx() -
serializeBVH
public void serializeBVH(ComputeByteBuffer computeByteBuffer, int primitiveIdxOffset) throws IOException - Throws:
IOException
-
serializeBIH
public void serializeBIH(ComputeByteBuffer computeByteBuffer, int primitiveIdxOffset) throws IOException - Throws:
IOException
-
getSAH
public static double getSAH(double area, double leftArea, double rightArea, int leftPrims, int rightPrims) -
computeSAH
public double computeSAH() -
prune
public void prune()
-