Class RaymarchingFilter


public final class RaymarchingFilter extends Filter3<RaymarchingFilter>
Raymarching filter.
  • Constructor Details

    • RaymarchingFilter

      public RaymarchingFilter(String fragmentShader, int viewportWidth, int viewportHeight)
      Creates a filter with the given viewport size
      fragmentShader - The name of the fragment shader file, without extension
      viewportWidth - The viewport width in pixels.
      viewportHeight - The viewport height in pixels.
    • RaymarchingFilter

      public RaymarchingFilter(String fragmentShader, com.badlogic.gdx.math.Vector2 viewportSize)
      Creates a filter with the given viewport size.
      fragmentShader - Name of fragment shader file without extension
      viewportSize - The viewport size in pixels.
  • Method Details

    • setFrustumCorners

      public void setFrustumCorners(com.badlogic.gdx.math.Matrix4 fc)
    • setView

      public void setView(com.badlogic.gdx.math.Matrix4 view)
    • setCombined

      public void setCombined(com.badlogic.gdx.math.Matrix4 viewProjection)
    • setPos

      public void setPos(com.badlogic.gdx.math.Vector3 pos)
    • setTime

      public void setTime(float seconds)
    • setViewportSize

      public void setViewportSize(float width, float height)
    • setZfarK

      public void setZfarK(float zfar, float k)
    • setDepthTexture

      public void setDepthTexture( tex)
    • setAdditionalTexture

      public void setAdditionalTexture( tex)
    • setAdditional

      public void setAdditional(float[] additional)
    • setAdditional

      public void setAdditional(float a, float b, float c, float d)
    • setAdditional

      public void setAdditional(int index, float value)
    • getViewportSize

      public com.badlogic.gdx.math.Vector2 getViewportSize()
    • rebind

      public void rebind()
      Specified by:
      rebind in class Filter3<RaymarchingFilter>
    • onBeforeRender

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