APIdia Launch Partner
Top Fields Constructors Methods
com.badlogic.gdx.graphics.g3d.environment

public Class DirectionalShadowLight

extends DirectionalLight
implements ShadowMap, Disposable
Class Inheritance
All Implemented Interfaces
com.badlogic.gdx.utils.Disposable, com.badlogic.gdx.graphics.g3d.environment.ShadowMap
Imports
com.badlogic.gdx.Gdx, com.badlogic.gdx.graphics.Camera, .GL20, .OrthographicCamera, .Pixmap.Format, .Texture, com.badlogic.gdx.graphics.g3d.utils.TextureDescriptor, com.badlogic.gdx.graphics.glutils.FrameBuffer, com.badlogic.gdx.math.Matrix4, .Vector3, com.badlogic.gdx.utils.Disposable

Author
Xoppa

Field Summary

Modifier and TypeField and Description
protected Camera
protected FrameBuffer
protected float
protected float
protected final TextureDescriptor<T extends GLTexture>
protected final Vector3
Inherited from com.badlogic.gdx.graphics.g3d.environment.DirectionalLight:
direction

Constructor Summary

AccessConstructor and Description
public
DirectionalShadowLight(int shadowMapWidth, int shadowMapHeight, float shadowViewportWidth, float shadowViewportHeight, float shadowNear, float shadowFar)

Method Summary

Modifier and TypeMethod and Description
public void
begin(final Camera camera)

public void
begin(final Vector3 center, final Vector3 forward)

public void
public void
dispose()

Implements com.badlogic.gdx.utils.Disposable.dispose.

Releases all resources of this object.

public void
end()

public Camera
public TextureDescriptor<T extends GLTexture>
public FrameBuffer
public Matrix4
public void
update(final Camera camera)

public void
update(final Vector3 center, final Vector3 forward)

Inherited from com.badlogic.gdx.graphics.g3d.environment.DirectionalLight:
equalsequalssetsetsetsetsetsetDirectionsetDirection

Field Detail

camback to summary
protected Camera cam
fboback to summary
protected FrameBuffer fbo
halfDepthback to summary
protected float halfDepth
halfHeightback to summary
protected float halfHeight
textureDescback to summary
protected final TextureDescriptor<T extends GLTexture> textureDesc
tmpVback to summary
protected final Vector3 tmpV

Constructor Detail

DirectionalShadowLightback to summary
public DirectionalShadowLight(int shadowMapWidth, int shadowMapHeight, float shadowViewportWidth, float shadowViewportHeight, float shadowNear, float shadowFar)

Method Detail

beginback to summary
public void begin(final Camera camera)
beginback to summary
public void begin(final Vector3 center, final Vector3 forward)
beginback to summary
public void begin()
disposeback to summary
public void dispose()

Implements com.badlogic.gdx.utils.Disposable.dispose.

Doc from com.badlogic.gdx.utils.Disposable.dispose.

Releases all resources of this object.

Annotations
@Override
endback to summary
public void end()
getCameraback to summary
public Camera getCamera()
getDepthMapback to summary
public TextureDescriptor<T extends GLTexture> getDepthMap()

Implements com.badlogic.gdx.graphics.g3d.environment.ShadowMap.getDepthMap.

Annotations
@Override
getFrameBufferback to summary
public FrameBuffer getFrameBuffer()
getProjViewTransback to summary
public Matrix4 getProjViewTrans()

Implements com.badlogic.gdx.graphics.g3d.environment.ShadowMap.getProjViewTrans.

Annotations
@Override
updateback to summary
public void update(final Camera camera)
updateback to summary
public void update(final Vector3 center, final Vector3 forward)