Class InstancedDirectionalShadowFilter

All Implemented Interfaces:
Savable

public class InstancedDirectionalShadowFilter extends DirectionalLightShadowFilterVR
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)
      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)
      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()
      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)
      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: