Class DirectionalShadowLight

java.lang.Object
com.badlogic.gdx.graphics.g3d.environment.BaseLight<com.badlogic.gdx.graphics.g3d.environment.DirectionalLight>
com.badlogic.gdx.graphics.g3d.environment.DirectionalLight
gaiasky.util.gdx.model.gltf.scene3d.lights.DirectionalLightEx
gaiasky.util.gdx.model.gltf.scene3d.lights.DirectionalShadowLight
All Implemented Interfaces:
com.badlogic.gdx.graphics.g3d.environment.ShadowMap, com.badlogic.gdx.utils.Disposable

public class DirectionalShadowLight extends DirectionalLightEx implements com.badlogic.gdx.graphics.g3d.environment.ShadowMap, com.badlogic.gdx.utils.Disposable
  • Field Details

    • SQRT2

      protected static final float SQRT2
    • fbo

      protected com.badlogic.gdx.graphics.glutils.FrameBuffer fbo
    • cam

      protected com.badlogic.gdx.graphics.Camera cam
    • tmpV

      protected final com.badlogic.gdx.math.Vector3 tmpV
    • textureDesc

      protected final com.badlogic.gdx.graphics.g3d.utils.TextureDescriptor textureDesc
    • center

      protected final com.badlogic.gdx.math.Vector3 center
  • Constructor Details

    • DirectionalShadowLight

      public DirectionalShadowLight()
    • DirectionalShadowLight

      public DirectionalShadowLight(int shadowMapWidth, int shadowMapHeight)
    • DirectionalShadowLight

      public DirectionalShadowLight(int shadowMapWidth, int shadowMapHeight, float shadowViewportWidth, float shadowViewportHeight, float shadowNear, float shadowFar)
  • Method Details

    • setShadowMapSize

      public DirectionalShadowLight setShadowMapSize(int shadowMapWidth, int shadowMapHeight)
    • createFrameBuffer

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

      public DirectionalShadowLight setViewport(float shadowViewportWidth, float shadowViewportHeight, float shadowNear, float shadowFar)
    • setCenter

      public DirectionalShadowLight setCenter(com.badlogic.gdx.math.Vector3 center)
    • getCenter

      public com.badlogic.gdx.math.Vector3 getCenter(com.badlogic.gdx.math.Vector3 center)
    • setCenter

      public DirectionalShadowLight setCenter(float x, float y, float z)
    • setBounds

      public DirectionalShadowLight setBounds(com.badlogic.gdx.math.collision.BoundingBox box)
    • validate

      protected void validate()
    • begin

      public void begin()
    • end

      public void end()
    • getFrameBuffer

      public com.badlogic.gdx.graphics.glutils.FrameBuffer getFrameBuffer()
    • getCamera

      public com.badlogic.gdx.graphics.Camera getCamera()
    • getProjViewTrans

      public com.badlogic.gdx.math.Matrix4 getProjViewTrans()
      Specified by:
      getProjViewTrans in interface com.badlogic.gdx.graphics.g3d.environment.ShadowMap
    • getDepthMap

      public com.badlogic.gdx.graphics.g3d.utils.TextureDescriptor getDepthMap()
      Specified by:
      getDepthMap in interface com.badlogic.gdx.graphics.g3d.environment.ShadowMap
    • dispose

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

      public boolean equals(DirectionalLightEx other)
      Overrides:
      equals in class DirectionalLightEx
    • equals

      public boolean equals(DirectionalShadowLight other)