Class DirectionalShadowLight
- java.lang.Object
-
- com.badlogic.gdx.graphics.g3d.environment.BaseLight<DirectionalLight>
-
- com.badlogic.gdx.graphics.g3d.environment.DirectionalLight
-
- com.badlogic.gdx.graphics.g3d.environment.DirectionalShadowLight
-
- All Implemented Interfaces:
ShadowMap,Disposable
public class DirectionalShadowLight extends DirectionalLight implements ShadowMap, Disposable
-
-
Field Summary
Fields Modifier and Type Field Description protected Cameracamprotected FrameBufferfboprotected floathalfDepthprotected floathalfHeightprotected TextureDescriptortextureDescprotected Vector3tmpV-
Fields inherited from class com.badlogic.gdx.graphics.g3d.environment.DirectionalLight
direction
-
-
Constructor Summary
Constructors Constructor Description DirectionalShadowLight(int shadowMapWidth, int shadowMapHeight, float shadowViewportWidth, float shadowViewportHeight, float shadowNear, float shadowFar)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbegin()voidbegin(Camera camera)voidbegin(Vector3 center, Vector3 forward)voiddispose()Releases all resources of this object.voidend()CameragetCamera()TextureDescriptorgetDepthMap()FrameBuffergetFrameBuffer()Matrix4getProjViewTrans()voidupdate(Camera camera)voidupdate(Vector3 center, Vector3 forward)-
Methods inherited from class com.badlogic.gdx.graphics.g3d.environment.DirectionalLight
equals, equals, set, set, set, set, set, setDirection, setDirection
-
-
-
-
Field Detail
-
fbo
protected FrameBuffer fbo
-
cam
protected Camera cam
-
halfDepth
protected float halfDepth
-
halfHeight
protected float halfHeight
-
tmpV
protected final Vector3 tmpV
-
textureDesc
protected final TextureDescriptor textureDesc
-
-
Method Detail
-
update
public void update(Camera camera)
-
begin
public void begin(Camera camera)
-
begin
public void begin()
-
end
public void end()
-
getFrameBuffer
public FrameBuffer getFrameBuffer()
-
getCamera
public Camera getCamera()
-
getProjViewTrans
public Matrix4 getProjViewTrans()
- Specified by:
getProjViewTransin interfaceShadowMap
-
getDepthMap
public TextureDescriptor getDepthMap()
- Specified by:
getDepthMapin interfaceShadowMap
-
dispose
public void dispose()
Description copied from interface:DisposableReleases all resources of this object.- Specified by:
disposein interfaceDisposable
-
-