java.lang.Object
de.grogra.glsl.utility.GLSLShader
de.grogra.glsl.utility.GLSLManagedShader
de.grogra.glsl.light.GLSLLightShader
de.grogra.glsl.light.GLSLDirectionalLight
de.grogra.glsl.light.shadow.GLSLDirectionalLightShadow
de.grogra.glsl.light.shadow.GLSLSkyLightShadow
- All Implemented Interfaces:
GLSLOpenGLObject
Implementation of the directional light type.
- Author:
- Konni Hartmann
-
Field Summary
Fields inherited from class de.grogra.glsl.light.GLSLDirectionalLight
col0, lightDir, radientPower
Fields inherited from class de.grogra.glsl.light.GLSLLightShader
spec, stdV
Fields inherited from class de.grogra.glsl.utility.GLSLManagedShader
config
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionFor "hardcompiled" Shaders this method should return a new instanceprotected void
setupDynamicUniforms
(javax.media.opengl.GL gl, GLSLDisplay disp, Object data, int shaderNo) Function that loads uniforms of the represented Shader.Methods inherited from class de.grogra.glsl.light.shadow.GLSLDirectionalLightShadow
canDisplayShadows, getLightFunction, setupShader
Methods inherited from class de.grogra.glsl.light.GLSLDirectionalLight
getFragmentShader, needsRecompilation
Methods inherited from class de.grogra.glsl.light.GLSLLightShader
getLightShaderConfig, getVertexShader, toString
Methods inherited from class de.grogra.glsl.utility.GLSLManagedShader
deleteShader, getConfig, getMaterial_stamp, setConfig, setMaterial_stamp
Methods inherited from class de.grogra.glsl.utility.GLSLShader
activateShader, cleanup, getShaderProgramNumber, printProgramInfoLog
-
Constructor Details
-
GLSLSkyLightShadow
public GLSLSkyLightShadow()
-
-
Method Details
-
instanceFor
- Overrides:
instanceFor
in classGLSLDirectionalLight
- Returns:
- Class represented by this Shader
-
setupDynamicUniforms
protected void setupDynamicUniforms(javax.media.opengl.GL gl, GLSLDisplay disp, Object data, int shaderNo) Description copied from class:GLSLShader
Function that loads uniforms of the represented Shader.- Overrides:
setupDynamicUniforms
in classGLSLDirectionalLight
disp
- GLSLDisplay that tries using this shaderdata
- The GroIMP-Shader-Object represented by this shader.
-
getInstance
Description copied from class:GLSLShader
For "hardcompiled" Shaders this method should return a new instance- Overrides:
getInstance
in classGLSLDirectionalLightShadow
- Returns:
-