de.grogra.imp3d.glsl.light.shadow
public abstract class GLSLShadowMap extends TextureRenderTarget
| Modifier and Type | Field and Description |
|---|---|
protected int |
GRAPH_STAMP |
protected boolean |
invalid |
DEPTHUB, RGBA16F, RGBA16US, RGBA32F, RGBA8UBheight, index, internalFormat, texType, type, width| Constructor and Description |
|---|
GLSLShadowMap() |
| Modifier and Type | Method and Description |
|---|---|
abstract 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 java.lang.Class<?> |
getDefaultLightType() |
abstract GLSLShadowMap |
getInstance() |
Matrix4d |
getLightToView() |
Matrix4d |
getLightToView(int side) |
abstract int |
getSize() |
Matrix4d |
getViewToClip() |
protected void |
renderCachedScene(GLSLDisplay disp,
OpenGLState glState,
Matrix4d round) |
void |
setCamDir(Vector3d camDir) |
void |
setCamPos(Point4d camPos) |
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)
|
void |
setLightTransf(LightPos light) |
abstract void |
setupTextureMatrices(OpenGLState glState,
Matrix4d ViewToWorld,
LightPos light) |
attachToFbo, bindTo, create, create, resize, toStringbindTo, cleanup, delete, estimateSizeInByte, getHeight, getIndex, getTexType, getType, getWidthclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitestimateSizeInBytepublic abstract boolean create(javax.media.opengl.GL gl)
public abstract boolean create(javax.media.opengl.GL gl,
int width,
int height)
public void delete(OpenGLState glState, boolean javaonly)
delete in interface FBOAttachmentdelete in class TextureRenderTargetpublic abstract void fill(GLSLDisplay disp, OpenGLState glState)
public abstract java.lang.Class<?> getDefaultLightType()
public abstract GLSLShadowMap getInstance()
public Matrix4d getLightToView()
public Matrix4d getLightToView(int side)
public abstract int getSize()
public Matrix4d getViewToClip()
protected void renderCachedScene(GLSLDisplay disp, OpenGLState glState, Matrix4d round)
public void setCamDir(Vector3d camDir)
public void setCamPos(Point4d camPos)
public void setInvalid()
public void setLightTransf(LightPos light)
public abstract void setupTextureMatrices(OpenGLState glState, Matrix4d ViewToWorld, LightPos light)