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
- All Implemented Interfaces:
GLSLOpenGLObject
- Direct Known Subclasses:
GLSLSkyLightShadow
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 TypeMethodDescriptionbooleanFor "hardcompiled" Shaders this method should return a new instanceSets middle part of a light shader (after properties have been extracted from deferred-shading-texturesvoidsetupShader(javax.media.opengl.GL gl, GLSLDisplay disp, Object data) Methods inherited from class de.grogra.glsl.light.GLSLDirectionalLight
getFragmentShader, instanceFor, needsRecompilation, setupDynamicUniformsMethods inherited from class de.grogra.glsl.light.GLSLLightShader
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
-
GLSLDirectionalLightShadow
public GLSLDirectionalLightShadow()
-
-
Method Details
-
getLightFunction
Description copied from class:GLSLLightShaderSets middle part of a light shader (after properties have been extracted from deferred-shading-textures- Overrides:
getLightFunctionin classGLSLDirectionalLight- Returns:
-
setupShader
- Overrides:
setupShaderin classGLSLDirectionalLight- Parameters:
gl-disp-
-
getInstance
Description copied from class:GLSLShaderFor "hardcompiled" Shaders this method should return a new instance- Overrides:
getInstancein classGLSLDirectionalLight- Returns:
-
canDisplayShadows
public boolean canDisplayShadows()- Overrides:
canDisplayShadowsin classGLSLLightShader
-