Class ShadowLight
- java.lang.Object
- 
- de.coreengine.rendering.renderable.light.ShadowLight
 
- 
 public class ShadowLight extends Object Represents a shadow light in the scene. This light does not light objects up, just creating a show behind the objects.- Author:
- Darius Dinger
 
- 
- 
Constructor SummaryConstructors Constructor Description ShadowLight()Creating new shadow light.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description CameragetLightsView()Getting the view camera of the shadow lightFrameBufferObjectgetShadowMap()javax.vecmath.Matrix4fgetVpMat()voidsetDimension(float w, float h, float f)Changes the dimension of the shadow lights view frustumvoidsetQuality(float quality)Setting the quality of the shadowsvoidupdateVpMat()Updating shadow maps view projection matrix
 
- 
- 
- 
Method Detail- 
setQualitypublic void setQuality(float quality) Setting the quality of the shadows- Parameters:
- quality- New shadow quality
 
 - 
getLightsViewpublic Camera getLightsView() Getting the view camera of the shadow light- Returns:
- Read/Writeable camera of the lights view
 
 - 
updateVpMatpublic void updateVpMat() Updating shadow maps view projection matrix
 - 
getVpMatpublic javax.vecmath.Matrix4f getVpMat() - Returns:
- View projection matrix of the shadow light
 
 - 
getShadowMappublic FrameBufferObject getShadowMap() - Returns:
- Fbo that stores the actual shadow map from lights position
 
 - 
setDimensionpublic void setDimension(float w, float h, float f)Changes the dimension of the shadow lights view frustum- Parameters:
- w- Width of the frustum
- h- Height of the frustum
- f- Far plane/Length of the frustum
 
 
- 
 
-