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
FieldsFields inherited from class de.grogra.glsl.light.GLSLSpotLight
col0, fade_distance, fade_power, lightPos, radientPower, spotCosCutoff, spotDirection, spotInnerCosCutoffFields 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.GLSLSpotLight
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
-
Field Details
-
shadowMap
-
-
Constructor Details
-
GLSLSpotLightShadow
public GLSLSpotLightShadow()
-
-
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 classGLSLSpotLight- Returns:
-
setupShader
- Overrides:
setupShaderin classGLSLSpotLight- Parameters:
gl-disp-
-
getInstance
Description copied from class:GLSLShaderFor "hardcompiled" Shaders this method should return a new instance- Overrides:
getInstancein classGLSLSpotLight- Returns:
-
canDisplayShadows
public boolean canDisplayShadows()- Overrides:
canDisplayShadowsin classGLSLLightShader
-