java.lang.Object
de.grogra.glsl.utility.GLSLTexture
de.grogra.glsl.utility.TextureRenderTarget
de.grogra.glsl.light.shadow.GLSLShadowMap
- All Implemented Interfaces:
FBOAttachment
,GLSLOpenGLObject
- Direct Known Subclasses:
GLSLShadowCube
,GLSLShadowParallel
,GLSLShadowPerspective
This class is the base for all shadowmaps.
- Author:
- Konni Hartmann
-
Field Summary
Fields inherited from class de.grogra.glsl.utility.TextureRenderTarget
DEPTHUB, RGBA16F, RGBA16US, RGBA32F, RGBA8UB
Fields inherited from class de.grogra.glsl.utility.GLSLTexture
height, index, internalFormat, texType, type, width
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract boolean
create
(javax.media.opengl.GL gl) abstract boolean
create
(javax.media.opengl.GL gl, int width, int height) void
delete
(OpenGLState glState, boolean javaonly) abstract void
fill
(GLSLDisplay disp, OpenGLState glState) abstract Class<?>
abstract GLSLShadowMap
getLightToView
(int side) abstract int
getSize()
protected void
renderCachedScene
(GLSLDisplay disp, OpenGLState glState, Matrix4d round) void
void
void
Mark this Shadow map as invalid may be called to mark changes in matrices that are not covered by changes in graph (for example caching may present a instance to other lightsources)void
setLightTransf
(LightPos light) abstract void
setupTextureMatrices
(OpenGLState glState, Matrix4d ViewToWorld, LightPos light) Methods inherited from class de.grogra.glsl.utility.TextureRenderTarget
attachToFbo, bindTo, create, create, resize, toString
Methods inherited from class de.grogra.glsl.utility.GLSLTexture
bindTo, cleanup, delete, estimateSizeInByte, getHeight, getIndex, getTexType, getType, getWidth
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface de.grogra.glsl.utility.FBOAttachment
estimateSizeInByte
-
Field Details
-
GRAPH_STAMP
protected int GRAPH_STAMP -
invalid
protected boolean invalid
-
-
Constructor Details
-
GLSLShadowMap
public GLSLShadowMap()
-
-
Method Details
-
setLightTransf
-
setCamDir
-
setCamPos
-
getLightToView
-
getLightToView
-
getViewToClip
-
setInvalid
public void setInvalid()Mark this Shadow map as invalid may be called to mark changes in matrices that are not covered by changes in graph (for example caching may present a instance to other lightsources) -
renderCachedScene
-
fill
-
create
public abstract boolean create(javax.media.opengl.GL gl) -
create
public abstract boolean create(javax.media.opengl.GL gl, int width, int height) -
getSize
public abstract int getSize() -
getInstance
-
getDefaultLightType
-
setupTextureMatrices
public abstract void setupTextureMatrices(OpenGLState glState, Matrix4d ViewToWorld, LightPos light) -
delete
- Specified by:
delete
in interfaceFBOAttachment
- Overrides:
delete
in classTextureRenderTarget
-