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
FieldsFields inherited from class de.grogra.glsl.utility.TextureRenderTarget
DEPTHUB, RGBA16F, RGBA16US, RGBA32F, RGBA8UBFields inherited from class de.grogra.glsl.utility.GLSLTexture
height, index, internalFormat, texType, type, width -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract booleancreate(javax.media.opengl.GL gl) abstract booleancreate(javax.media.opengl.GL gl, int width, int height) voiddelete(OpenGLState glState, boolean javaonly) abstract voidfill(GLSLDisplay disp, OpenGLState glState) abstract Class<?> abstract GLSLShadowMapgetLightToView(int side) abstract intgetSize()protected voidrenderCachedScene(GLSLDisplay disp, OpenGLState glState, Matrix4d round) voidvoidvoidMark 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)voidsetLightTransf(LightPos light) abstract voidsetupTextureMatrices(OpenGLState glState, Matrix4d ViewToWorld, LightPos light) Methods inherited from class de.grogra.glsl.utility.TextureRenderTarget
attachToFbo, bindTo, create, create, resize, toStringMethods inherited from class de.grogra.glsl.utility.GLSLTexture
bindTo, cleanup, delete, estimateSizeInByte, getHeight, getIndex, getTexType, getType, getWidthMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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:
deletein interfaceFBOAttachment- Overrides:
deletein classTextureRenderTarget
-