java.lang.Object
gaiasky.util.gdx.contrib.postprocess.filters.Filter<Lens>
gaiasky.util.gdx.contrib.postprocess.filters.Lens

public final class Lens extends Filter<Lens>
Lens flare effect.
  • Constructor Details

    • Lens

      public Lens(float width, float height)
  • Method Details

    • setLightPosition

      public void setLightPosition(float x, float y)
      Sets the light position in screen coordinates [-1..1].
      Parameters:
      x -
      y -
    • getLightPosition

      public com.badlogic.gdx.math.Vector2 getLightPosition()
    • setLightPosition

      public void setLightPosition(com.badlogic.gdx.math.Vector2 lightPosition)
    • getIntensity

      public float getIntensity()
    • setIntensity

      public void setIntensity(float intensity)
    • getColor

      public com.badlogic.gdx.math.Vector3 getColor()
    • setColor

      public void setColor(float r, float g, float b)
    • setViewport

      public void setViewport(float width, float height)
    • rebind

      public void rebind()
      Description copied from class: Filter
      FIXME add comment
      Specified by:
      rebind in class Filter<Lens>
    • onBeforeRender

      protected void onBeforeRender()
      Description copied from class: Filter
      This method will get called just before a rendering operation occurs.
      Specified by:
      onBeforeRender in class Filter<Lens>