java.lang.Object
de.grogra.glsl.utility.GLSLShader
de.grogra.glsl.utility.GLSLManagedShader
de.grogra.glsl.light.GLSLLightShader
de.grogra.glsl.light.GLSLSpotLight
de.grogra.glsl.light.shadow.GLSLSpotLightShadow
- All Implemented Interfaces:
GLSLOpenGLObject
Implementation of the spot light type.
- Author:
- Konni Hartmann
-
Field Summary
Fields inherited from class de.grogra.glsl.light.GLSLSpotLight
col0, fade_distance, fade_power, lightPos, radientPower, spotCosCutoff, spotDirection, spotInnerCosCutoff
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.GLSLSpotLight
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
-
Field Details
-
shadowMap
-
-
Constructor Details
-
GLSLSpotLightShadow
public GLSLSpotLightShadow()
-
-
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 classGLSLSpotLight
- Returns:
-
setupShader
- Overrides:
setupShader
in classGLSLSpotLight
-
getInstance
Description copied from class:GLSLShader
For "hardcompiled" Shaders this method should return a new instance- Overrides:
getInstance
in classGLSLSpotLight
- Returns:
-
canDisplayShadows
public boolean canDisplayShadows()- Overrides:
canDisplayShadows
in classGLSLLightShader
-