Module gl1

Class GLSLShadowMap

All Implemented Interfaces:
FBOAttachment, GLSLOpenGLObject
Direct Known Subclasses:
GLSLShadowCube, GLSLShadowParallel, GLSLShadowPerspective

public abstract class GLSLShadowMap extends TextureRenderTarget
This class is the base for all shadowmaps.
Author:
Konni Hartmann
  • Field Details

    • GRAPH_STAMP

      protected int GRAPH_STAMP
    • invalid

      protected boolean invalid
  • Constructor Details

    • GLSLShadowMap

      public GLSLShadowMap()
  • Method Details

    • setLightTransf

      public void setLightTransf(LightPos light)
    • setCamDir

      public void setCamDir(Vector3d camDir)
    • setCamPos

      public void setCamPos(Point4d camPos)
    • getLightToView

      public Matrix4d getLightToView()
    • getLightToView

      public Matrix4d getLightToView(int side)
    • getViewToClip

      public Matrix4d 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

      protected void renderCachedScene(GLSLDisplay disp, OpenGLState glState, Matrix4d round)
    • fill

      public abstract void fill(GLSLDisplay disp, OpenGLState glState)
    • 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

      public abstract GLSLShadowMap getInstance()
    • getDefaultLightType

      public abstract Class<?> getDefaultLightType()
    • setupTextureMatrices

      public abstract void setupTextureMatrices(OpenGLState glState, Matrix4d ViewToWorld, LightPos light)
    • delete

      public void delete(OpenGLState glState, boolean javaonly)
      Specified by:
      delete in interface FBOAttachment
      Overrides:
      delete in class TextureRenderTarget