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 float
computeZFar
(GeometryList occ, GeometryList recv, Camera cam) Compute the Zfar in the model view to adjust the Zfar distance for the splits calculationstatic void
updateFrustumSplits
(float[] splits, float near, float far, float lambda) Updates the frustum splits stores insplits
using PSSM.
-
Method Details
-
updateFrustumSplits
public static void updateFrustumSplits(float[] splits, float near, float far, float lambda) Updates the frustum splits stores insplits
using 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
-