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, 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 TypeMethodDescriptionboolean
For "hardcompiled" Shaders this method should return a new instanceSets middle part of a light shader (after properties have been extracted from deferred-shading-texturesvoid
setupShader
(javax.media.opengl.GL gl, GLSLDisplay disp, Object data) Methods inherited from class de.grogra.glsl.light.GLSLDirectionalLight
getFragmentShader, instanceFor, needsRecompilation, setupDynamicUniforms
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
-
GLSLDirectionalLightShadow
public GLSLDirectionalLightShadow()
-
-
Method Details
-
getLightFunction
Description copied from class:GLSLLightShader
Sets middle part of a light shader (after properties have been extracted from deferred-shading-textures- Overrides:
getLightFunction
in classGLSLDirectionalLight
- Returns:
-
setupShader
- Overrides:
setupShader
in classGLSLDirectionalLight
-
getInstance
Description copied from class:GLSLShader
For "hardcompiled" Shaders this method should return a new instance- Overrides:
getInstance
in classGLSLDirectionalLight
- Returns:
-
canDisplayShadows
public boolean canDisplayShadows()- Overrides:
canDisplayShadows
in classGLSLLightShader
-