Class MirrorSource

java.lang.Object
gaiasky.util.gdx.model.gltf.scene3d.scene.MirrorSource
All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable

public class MirrorSource extends Object implements com.badlogic.gdx.utils.Disposable
  • Field Details Link icon

    • fbo Link icon

      protected com.badlogic.gdx.graphics.glutils.FrameBuffer fbo
    • clipScene Link icon

      public boolean clipScene
      enable/disable scene clipping. When enabled, objects behind mirror are not rendered.
    • mirrorAttribute Link icon

      protected final MirrorSourceAttribute mirrorAttribute
  • Constructor Details Link icon

    • MirrorSource Link icon

      public MirrorSource()
  • Method Details Link icon

    • createFrameBuffer Link icon

      protected com.badlogic.gdx.graphics.glutils.FrameBuffer createFrameBuffer(int width, int height)
    • setSize Link icon

      public void setSize(int width, int height)
      Set mirror source frame buffer size (usually the same as the final render resolution).
      Parameters:
      width - when set to zero, default back buffer width will be used.
      height - when set to zero, default back buffer height will be used.
    • setPlane Link icon

      public void setPlane(float nx, float ny, float nz, float d)
      set mirror plane
      Parameters:
      nx - normal x
      ny - normal y
      nz - normal z
      d - plan origin
    • set Link icon

      public MirrorSource set(float nx, float ny, float nz, float d, boolean clipScene)
      set mirror source
      Parameters:
      nx - normal x
      ny - normal y
      nz - normal z
      d - plan origin
      clipScene - if objects behind the plane should be clipped.
    • begin Link icon

      public void begin(com.badlogic.gdx.graphics.Camera camera, Environment environment, SceneSkybox skyBox)
    • end Link icon

      public void end()
    • dispose Link icon

      public void dispose()
      Specified by:
      dispose in interface com.badlogic.gdx.utils.Disposable