- 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, radientPowerFields inherited from class de.grogra.glsl.light.GLSLLightShader
spec, stdVFields inherited from class de.grogra.glsl.utility.GLSLManagedShader
config -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionFor "hardcompiled" Shaders this method should return a new instancevoidsetupDynamicUniforms(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, setupShaderMethods inherited from class de.grogra.glsl.light.GLSLLightShader
canDisplayShadows, getLightShaderConfig, getVertexShader, toStringMethods inherited from class de.grogra.glsl.utility.GLSLManagedShader
deleteShader, getConfig, getMaterial_stamp, setConfig, setMaterial_stampMethods inherited from class de.grogra.glsl.utility.GLSLShader
activateShader, cleanup, getShaderProgramNumber, printProgramInfoLog
-
Constructor Details
-
GLSLSkyLight
public GLSLSkyLight()
-
-
Method Details
-
instanceFor
- Overrides:
instanceForin 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:GLSLShaderFunction that loads uniforms of the represented Shader.- Overrides:
setupDynamicUniformsin classGLSLDirectionalLight- Parameters:
gl-disp- GLSLDisplay that tries using this shaderdata- The GroIMP-Shader-Object represented by this shader.
-
getInstance
Description copied from class:GLSLShaderFor "hardcompiled" Shaders this method should return a new instance- Overrides:
getInstancein classGLSLDirectionalLight- Returns:
-