de.grogra.imp3d.glsl.light.shadow
Class GLSLShadowParallel
java.lang.Object
de.grogra.imp3d.glsl.utility.GLSLTexture
de.grogra.imp3d.glsl.utility.TextureRenderTarget
de.grogra.imp3d.glsl.light.shadow.GLSLShadowMap
de.grogra.imp3d.glsl.light.shadow.GLSLShadowParallel
- All Implemented Interfaces:
- FBOAttachment, GLSLOpenGLObject
public class GLSLShadowParallel
- extends GLSLShadowMap
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
GLSLShadowParallel
public GLSLShadowParallel()
create
public boolean create(javax.media.opengl.GL gl)
- Specified by:
create
in class GLSLShadowMap
create
public boolean create(javax.media.opengl.GL gl,
int width,
int height)
- Specified by:
create
in class GLSLShadowMap
fill
public void fill(GLSLDisplay disp,
OpenGLState glState)
- Specified by:
fill
in class GLSLShadowMap
getDefaultLightType
public java.lang.Class<?> getDefaultLightType()
- Specified by:
getDefaultLightType
in class GLSLShadowMap
getInstance
public GLSLShadowMap getInstance()
- Specified by:
getInstance
in class GLSLShadowMap
getLightToView
public Matrix4d getLightToView()
- Overrides:
getLightToView
in class GLSLShadowMap
getSize
public int getSize()
- Specified by:
getSize
in class GLSLShadowMap
getViewToClip
public Matrix4d getViewToClip()
- Overrides:
getViewToClip
in class GLSLShadowMap
setProjRadius
public void setProjRadius(double radius)
- Sets the Projections diameter to width (should be )
- Parameters:
width
-
setupTextureMatrices
public void setupTextureMatrices(OpenGLState glState,
Matrix4d ViewToWorld,
LightPos light)
- Specified by:
setupTextureMatrices
in class GLSLShadowMap