Package com.jme3.shadow
Class PssmShadowUtil
java.lang.Object
com.jme3.shadow.PssmShadowUtil
Includes various useful shadow mapping functions.
 See
 
 for more info.
- 
Method SummaryModifier 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- 
updateFrustumSplitspublic 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 plane
- far- the distance to the camera's far plane
- lambda- the mixing parameter (0→purely linear, 1→purely logarithmic)
 
- 
computeZFarCompute the Zfar in the model view to adjust the Zfar distance for the splits calculation- Parameters:
- occ- a list of occluders
- recv- a list of receivers
- cam- the Camera (not null, unaffected)
- Returns:
- the Z-far distance
 
 
-