de.grogra.imp3d.glsl.light.shadow
Class GLSLSkyLightShadow

java.lang.Object
  extended by de.grogra.imp3d.glsl.utility.GLSLShader
      extended by de.grogra.imp3d.glsl.utility.GLSLManagedShader
          extended by de.grogra.imp3d.glsl.light.GLSLLightShader
              extended by de.grogra.imp3d.glsl.light.GLSLDirectionalLight
                  extended by de.grogra.imp3d.glsl.light.shadow.GLSLDirectionalLightShadow
                      extended by de.grogra.imp3d.glsl.light.shadow.GLSLSkyLightShadow
All Implemented Interfaces:
GLSLOpenGLObject

public class GLSLSkyLightShadow
extends GLSLDirectionalLightShadow

Implementation of the directional light type.

Author:
Konni Hartmann

Field Summary
 
Fields inherited from class de.grogra.imp3d.glsl.light.GLSLDirectionalLight
col0, lightDir, radientPower
 
Fields inherited from class de.grogra.imp3d.glsl.light.GLSLLightShader
spec, stdV
 
Fields inherited from class de.grogra.imp3d.glsl.utility.GLSLManagedShader
config
 
Constructor Summary
GLSLSkyLightShadow()
           
 
Method Summary
 GLSLShader getInstance()
          For "hardcompiled" Shaders this method should return a new instance
 java.lang.Class instanceFor()
           
protected  void setupDynamicUniforms(javax.media.opengl.GL gl, GLSLDisplay disp, java.lang.Object data, int shaderNo)
          Function that loads uniforms of the represented Shader.
 
Methods inherited from class de.grogra.imp3d.glsl.light.shadow.GLSLDirectionalLightShadow
canDisplayShadows, getLightFunction, setupShader
 
Methods inherited from class de.grogra.imp3d.glsl.light.GLSLDirectionalLight
getFragmentShader, needsRecompilation
 
Methods inherited from class de.grogra.imp3d.glsl.light.GLSLLightShader
getLightShaderConfig, getVertexShader, toString
 
Methods inherited from class de.grogra.imp3d.glsl.utility.GLSLManagedShader
deleteShader, getConfig, getMaterial_stamp, setConfig, setMaterial_stamp
 
Methods inherited from class de.grogra.imp3d.glsl.utility.GLSLShader
activateShader, cleanup, getShaderProgramNumber, printProgramInfoLog
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GLSLSkyLightShadow

public GLSLSkyLightShadow()
Method Detail

getInstance

public GLSLShader getInstance()
Description copied from class: GLSLShader
For "hardcompiled" Shaders this method should return a new instance

Overrides:
getInstance in class GLSLDirectionalLightShadow
Returns:

instanceFor

public java.lang.Class instanceFor()
Overrides:
instanceFor in class GLSLDirectionalLight
Returns:
Class represented by this Shader

setupDynamicUniforms

protected void setupDynamicUniforms(javax.media.opengl.GL gl,
                                    GLSLDisplay disp,
                                    java.lang.Object data,
                                    int shaderNo)
Description copied from class: GLSLShader
Function that loads uniforms of the represented Shader.

Overrides:
setupDynamicUniforms in class GLSLDirectionalLight
disp - GLSLDisplay that tries using this shader
data - The GroIMP-Shader-Object represented by this shader.