Class RaymarchingFilter

    • Constructor Detail

      • RaymarchingFilter

        public RaymarchingFilter​(java.lang.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​(java.lang.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 Detail

      • setFrustumCorners

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

        public void setCaminvView​(com.badlogic.gdx.math.Matrix4 civ)
      • setModelView

        public void setModelView​(com.badlogic.gdx.math.Matrix4 mv)
      • 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()
      • 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>