Class BloomRenderPass

java.lang.Object
com.ardor3d.renderer.pass.Pass
com.ardor3d.extension.effect.bloom.BloomRenderPass
All Implemented Interfaces:
Serializable

public class BloomRenderPass extends Pass
GLSL bloom effect pass. - Render supplied source to a texture - Extract intensity - Blur intensity - Blend with first pass
See Also:
  • Field Details

    • shaderDirectory

      public static String shaderDirectory
  • Constructor Details

    • BloomRenderPass

      public BloomRenderPass(Camera cam, int renderScale)
      Creates a new bloom renderpass
      Parameters:
      cam - Camera used for rendering the bloomsource
      renderScale - Scale of bloom texture
  • Method Details

    • resetParameters

      public void resetParameters()
      Reset bloom parameters to default
    • cleanUp

      public void cleanUp()
      Release pbuffers in TextureRenderer's. Preferably called from user cleanup method.
      Overrides:
      cleanUp in class Pass
    • isSupported

      public boolean isSupported()
    • doUpdate

      protected void doUpdate(double tpf)
      Overrides:
      doUpdate in class Pass
    • doRender

      public void doRender(Renderer r)
      Specified by:
      doRender in class Pass
    • getThrottle

      public double getThrottle()
      Returns:
      The throttle amount - or in other words, how much time in seconds must pass before the bloom effect is updated.
    • setThrottle

      public void setThrottle(float throttle)
      Parameters:
      throttle - The throttle amount - or in other words, how much time in seconds must pass before the bloom effect is updated.
    • getBlurSize

      public float getBlurSize()
    • setBlurSize

      public void setBlurSize(float blurSize)
    • getExposurePow

      public float getExposurePow()
    • setExposurePow

      public void setExposurePow(float exposurePow)
    • getExposureCutoff

      public float getExposureCutoff()
    • setExposureCutoff

      public void setExposureCutoff(float exposureCutoff)
    • getBlurIntensityMultiplier

      public float getBlurIntensityMultiplier()
    • setBlurIntensityMultiplier

      public void setBlurIntensityMultiplier(float blurIntensityMultiplier)
    • getNrBlurPasses

      public int getNrBlurPasses()
    • setNrBlurPasses

      public void setNrBlurPasses(int nrBlurPasses)
    • useCurrentScene

      public boolean useCurrentScene()
    • setUseCurrentScene

      public void setUseCurrentScene(boolean useCurrentScene)
    • setUseSeparateConvolution

      public void setUseSeparateConvolution(boolean useSeparateConvolution)
    • isUseSeparateConvolution

      public boolean isUseSeparateConvolution()
    • markNeedsRefresh

      public void markNeedsRefresh()