Class SdsmFitter

java.lang.Object
com.jme3.shadow.SdsmFitter

public class SdsmFitter extends Object
Compute shader used in SDSM.
  • Constructor Details

  • Method Details

    • fit

      public void fit(Texture depthTexture, int splitCount, Matrix4f cameraToLight, float cameraNear, float cameraFar)
      Initiates an asynchronous fit operation on the given depth texture.
      Parameters:
      depthTexture - the depth texture to analyze
      splitCount - number of cascade splits (1-4)
      cameraToLight - transformation matrix from camera clip space to light view space
      cameraNear - camera near plane distance
      cameraFar - camera far plane distance
    • getResult

      public SdsmFitter.SplitFitResult getResult(boolean wait)
      Gets the next available fit result.
      Parameters:
      wait - if true, blocks until a result is available
      Returns:
      the fit result, or null if none available (and wait is false)
    • cleanup

      public void cleanup()
      Cleans up GPU resources.
    • setMaxFrameLag

      public void setMaxFrameLag(int maxFrameLag)