Class PssmShadowUtil

java.lang.Object
com.jme3.shadow.PssmShadowUtil

public final class PssmShadowUtil extends Object
  • Method Details

    • updateFrustumSplits

      public static void updateFrustumSplits(float[] splits, float near, float far, float lambda)
      Updates the frustum splits stores in splits using 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)
    • computeZFar

      public 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
      Parameters:
      occ - a list of occluders
      recv - a list of receivers
      cam - the Camera (not null, unaffected)
      Returns:
      the Z-far distance