java.lang.Object
de.grogra.glsl.utility.GLSLShader
de.grogra.glsl.utility.GLSLManagedShader
de.grogra.glsl.light.GLSLLightShader
- All Implemented Interfaces:
GLSLOpenGLObject
- Direct Known Subclasses:
GLSLAreaLight,GLSLDirectionalLight,GLSLPointLight,GLSLSkyReflectionLight,GLSLSpotLight
Convention: If ambient is set to less than -1.0 the pixel should not be lit,
only its diffuse color will be used to render it.
- Author:
- Konni Hartmann
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Spectrum3fUsed for working with radiant powerstatic final String[]Fields inherited from class de.grogra.glsl.utility.GLSLManagedShader
config -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanSets middle part of a light shader (after properties have been extracted from deferred-shading-texturesprotected String[]protected voidsetupDynamicUniforms(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) toString()Methods 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, getFragmentShader, getInstance, getShaderProgramNumber, instanceFor, needsRecompilation, printProgramInfoLog
-
Field Details
-
stdV
-
spec
Used for working with radiant power
-
-
Constructor Details
-
GLSLLightShader
public GLSLLightShader()
-
-
Method Details
-
getLightShaderConfig
-
setupDynamicUniforms
protected 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 classGLSLShader- Parameters:
gl-disp- GLSLDisplay that tries using this shaderdata- The GroIMP-Shader-Object represented by this shader.
-
setupShader
- Overrides:
setupShaderin classGLSLShader- Parameters:
gl-disp-
-
getLightFunction
Sets middle part of a light shader (after properties have been extracted from deferred-shading-textures- Returns:
-
getVertexShader
- Overrides:
getVertexShaderin classGLSLShader- Returns:
-
canDisplayShadows
public boolean canDisplayShadows() -
toString
-