Class MotionBlurFilter

java.lang.Object
arc.fx.FxFilter
arc.fx.filters.MotionBlurFilter
All Implemented Interfaces:
Disposable

public class MotionBlurFilter extends FxFilter
Motion blur filter that draws the last frame (motion filter included) with a lower opacity.
  • Field Details

    • blurOpacity

      public float blurOpacity
    • lastFrameTex

      public Texture lastFrameTex
  • Constructor Details

  • Method Details

    • resize

      public void resize(int width, int height)
      Description copied from class: FxFilter
      This method should be called once filter will be added. Also it must be called on every application resize as usual.
      Overrides:
      resize in class FxFilter
    • dispose

      public void dispose()
      Description copied from interface: Disposable
      Releases all resources of this object.
      Specified by:
      dispose in interface Disposable
      Overrides:
      dispose in class FxFilter
    • rebind

      public void rebind()
      Overrides:
      rebind in class FxFilter
    • setParams

      public void setParams()
      Description copied from class: FxFilter
      Concrete objects shall be responsible to recreate or rebind its own resources whenever its needed, usually when the OpenGL context is lost. Eg., framebuffer textures should be updated and shader parameters should be reuploaded/rebound.
      Overrides:
      setParams in class FxFilter
    • onBeforeRender

      protected void onBeforeRender()
      Description copied from class: FxFilter
      This method gets called just before rendering.
      Overrides:
      onBeforeRender in class FxFilter
    • render

      public void render(FrameBuffer src, FrameBuffer dst)
      Description copied from class: FxFilter
      Concrete objects shall implements its own rendering, given the source and destination buffers.
      Overrides:
      render in class FxFilter