- 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 instancevoid
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.GLSLDirectionalLight
getFragmentShader, getLightFunction, needsRecompilation, setupShader
Methods inherited from class de.grogra.glsl.light.GLSLLightShader
canDisplayShadows, 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
-
GLSLSkyLight
public GLSLSkyLight()
-
-
Method Details
-
instanceFor
- Overrides:
instanceFor
in classGLSLDirectionalLight
- Returns:
- Class represented by this Shader
-
setupDynamicUniforms
public 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 classGLSLDirectionalLight
- Returns:
-