Class InstancedDirectionalShadowFilter

All Implemented Interfaces:
Savable

@Deprecated public class InstancedDirectionalShadowFilter extends DirectionalLightShadowFilterVR
Deprecated.
The jme3-vr module is deprecated and will be removed in a future version (as it only supports OpenVR). For new Virtual Reality projects, use user libraries that provide OpenXR support. See Virtual Reality JME wiki section for more information.
An instanced version of the directional light shadow filter.
  • Constructor Details

    • InstancedDirectionalShadowFilter

      public InstancedDirectionalShadowFilter(Application application, Camera camera, int shadowMapSize, int nbSplits, boolean instancedRendering, Camera rightCamera)
      Deprecated.
      Create a new instanced version of the directional light shadow filter.
      Parameters:
      application - the application that this filter is attached to.
      camera -
      shadowMapSize - the size of the rendered shadowmaps (512, 1024, 2048, etcetera)
      nbSplits - the number of shadow maps rendered (More shadow maps yield better quality, fewer frames per second.)
      instancedRendering - true if this filter has to use instance rendering and false otherwise.
      rightCamera - the camera used as right eye in stereo rendering mode.
  • Method Details

    • preFrame

      protected void preFrame(float tpf)
      Deprecated.
      Description copied from class: Filter
      Override this method if you want to modify parameters according to tpf before the rendering of the frame. This is useful for animated filters Also it can be the place to render pre passes
      Overrides:
      preFrame in class AbstractShadowFilterVR<DirectionalLightShadowRendererVR>
      Parameters:
      tpf - the time used to render the previous frame
    • isInstanceRendering

      public boolean isInstanceRendering()
      Deprecated.
      Get if this filter is using instance rendering.
      Returns:
      true if this filter is using instance rendering and false otherwise.
      See Also:
    • setInstanceRendering

      public void setInstanceRendering(boolean instanceRendering)
      Deprecated.
      Set if this filter has to use instance rendering.
      Parameters:
      instanceRendering - true if this filter has to use instance rendering and false otherwise.
      See Also: