java.lang.Object
de.grogra.glsl.utility.GLSLShader
de.grogra.glsl.utility.GLSLManagedShader
de.grogra.glsl.light.GLSLLightShader
de.grogra.glsl.light.GLSLPointLight
- All Implemented Interfaces:
GLSLOpenGLObject
- Direct Known Subclasses:
GLSLPointLightShadow
Implementation of the point light type.
- Author:
- Konni Hartmann
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Stringprotected Stringprotected Stringprotected StringFields 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 TypeMethodDescriptionString[]For "hardcompiled" Shaders this method should return a new instanceSets middle part of a light shader (after properties have been extracted from deferred-shading-texturesbooleanneedsRecompilation(Object data) Return false if Shader depends only on UniformsvoidsetupDynamicUniforms(javax.media.opengl.GL gl, GLSLDisplay disp, Object data, int shaderNo) Function that loads uniforms of the represented Shader.protected voidsetupShader(javax.media.opengl.GL gl, GLSLDisplay disp, Object data) Methods 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
-
Field Details
-
lightPos
-
col0
-
fade_power
-
fade_distance
-
radientPower
-
-
Constructor Details
-
GLSLPointLight
public GLSLPointLight()
-
-
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 classGLSLLightShader- Returns:
-
getFragmentShader
- Specified by:
getFragmentShaderin classGLSLShader- Returns:
-
needsRecompilation
Description copied from class:GLSLShaderReturn false if Shader depends only on Uniforms- Overrides:
needsRecompilationin classGLSLShader- Returns:
- true, if Sourcecode needs to be regenerated and recompiled
-
instanceFor
- Overrides:
instanceForin classGLSLShader- Returns:
- Class represented by this Shader
-
getInstance
Description copied from class:GLSLShaderFor "hardcompiled" Shaders this method should return a new instance- Overrides:
getInstancein classGLSLShader- Returns:
-
setupShader
- Overrides:
setupShaderin classGLSLLightShader- Parameters:
gl-disp-
-
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 classGLSLLightShader- Parameters:
gl-disp- GLSLDisplay that tries using this shaderdata- The GroIMP-Shader-Object represented by this shader.
-