public final class PssmShadowUtil
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static float |
computeZFar(GeometryList occ,
GeometryList recv,
Camera cam)
Compute the Zfar in the model view to adjust the Zfar distance for the splits calculation
|
static void |
updateFrustumSplits(float[] splits,
float near,
float far,
float lambda)
Updates the frustum splits stores in
splits using PSSM. |
public static void updateFrustumSplits(float[] splits,
float near,
float far,
float lambda)
splits using PSSM.splits - the array of splits (modified)near - the distance to the camera's near planefar - the distance to the camera's far planelambda - the mixing parameter (0→purely linear,
1→purely logarithmic)public static float computeZFar(GeometryList occ, GeometryList recv, Camera cam)
occ - a list of occludersrecv - a list of receiverscam - the Camera (not null, unaffected)