public class DirectionalShadowLight extends DirectionalLightEx implements com.badlogic.gdx.graphics.g3d.environment.ShadowMap, com.badlogic.gdx.utils.Disposable
| Modifier and Type | Field and Description |
|---|---|
protected com.badlogic.gdx.graphics.Camera |
cam |
protected com.badlogic.gdx.math.Vector3 |
center |
protected com.badlogic.gdx.graphics.glutils.FrameBuffer |
fbo |
protected static float |
SQRT2 |
protected com.badlogic.gdx.graphics.g3d.utils.TextureDescriptor |
textureDesc |
protected com.badlogic.gdx.math.Vector3 |
tmpV |
baseColor, intensity| Constructor and Description |
|---|
DirectionalShadowLight() |
DirectionalShadowLight(int shadowMapWidth,
int shadowMapHeight) |
DirectionalShadowLight(int shadowMapWidth,
int shadowMapHeight,
float shadowViewportWidth,
float shadowViewportHeight,
float shadowNear,
float shadowFar) |
| Modifier and Type | Method and Description |
|---|---|
void |
begin() |
void |
dispose() |
void |
end() |
boolean |
equals(DirectionalLightEx other) |
boolean |
equals(DirectionalShadowLight other) |
com.badlogic.gdx.graphics.Camera |
getCamera() |
com.badlogic.gdx.graphics.g3d.utils.TextureDescriptor |
getDepthMap() |
com.badlogic.gdx.graphics.glutils.FrameBuffer |
getFrameBuffer() |
com.badlogic.gdx.math.Matrix4 |
getProjViewTrans() |
DirectionalShadowLight |
setBounds(com.badlogic.gdx.math.collision.BoundingBox box) |
DirectionalShadowLight |
setCenter(float x,
float y,
float z) |
DirectionalShadowLight |
setCenter(com.badlogic.gdx.math.Vector3 center) |
DirectionalShadowLight |
setShadowMapSize(int shadowMapWidth,
int shadowMapHeight) |
DirectionalShadowLight |
setViewport(float shadowViewportWidth,
float shadowViewportHeight,
float shadowNear,
float shadowFar) |
protected void |
validate() |
equals, set, set, updateColorprotected static final float SQRT2
protected com.badlogic.gdx.graphics.glutils.FrameBuffer fbo
protected com.badlogic.gdx.graphics.Camera cam
protected final com.badlogic.gdx.math.Vector3 tmpV
protected final com.badlogic.gdx.graphics.g3d.utils.TextureDescriptor textureDesc
protected final com.badlogic.gdx.math.Vector3 center
public DirectionalShadowLight()
public DirectionalShadowLight(int shadowMapWidth,
int shadowMapHeight)
public DirectionalShadowLight(int shadowMapWidth,
int shadowMapHeight,
float shadowViewportWidth,
float shadowViewportHeight,
float shadowNear,
float shadowFar)
public DirectionalShadowLight setShadowMapSize(int shadowMapWidth, int shadowMapHeight)
public DirectionalShadowLight setViewport(float shadowViewportWidth, float shadowViewportHeight, float shadowNear, float shadowFar)
public DirectionalShadowLight setCenter(com.badlogic.gdx.math.Vector3 center)
public DirectionalShadowLight setCenter(float x, float y, float z)
public DirectionalShadowLight setBounds(com.badlogic.gdx.math.collision.BoundingBox box)
protected void validate()
public void begin()
public void end()
public com.badlogic.gdx.graphics.glutils.FrameBuffer getFrameBuffer()
public com.badlogic.gdx.graphics.Camera getCamera()
public com.badlogic.gdx.math.Matrix4 getProjViewTrans()
getProjViewTrans in interface com.badlogic.gdx.graphics.g3d.environment.ShadowMappublic com.badlogic.gdx.graphics.g3d.utils.TextureDescriptor getDepthMap()
getDepthMap in interface com.badlogic.gdx.graphics.g3d.environment.ShadowMappublic void dispose()
dispose in interface com.badlogic.gdx.utils.Disposablepublic boolean equals(DirectionalLightEx other)
equals in class DirectionalLightExpublic boolean equals(DirectionalShadowLight other)