Package com.jme3.shadow
Class PssmShadowUtil
java.lang.Object
com.jme3.shadow.PssmShadowUtil
Includes various useful shadow mapping functions.
 See
 
 for more info.
- 
Method Summary
Modifier and TypeMethodDescriptionstatic floatcomputeZFar(GeometryList occ, GeometryList recv, Camera cam) Compute the Zfar in the model view to adjust the Zfar distance for the splits calculationstatic voidupdateFrustumSplits(float[] splits, float near, float far, float lambda) Updates the frustum splits stores insplitsusing PSSM. 
- 
Method Details
- 
updateFrustumSplits
public static void updateFrustumSplits(float[] splits, float near, float far, float lambda) Updates the frustum splits stores insplitsusing PSSM.- Parameters:
 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)
 - 
computeZFar
Compute the Zfar in the model view to adjust the Zfar distance for the splits calculation- Parameters:
 occ- a list of occludersrecv- a list of receiverscam- the Camera (not null, unaffected)- Returns:
 - the Z-far distance
 
 
 -