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
Modifier and TypeFieldDescriptionprotected Spectrum3f
Used for working with radiant powerstatic final String[]
Fields inherited from class de.grogra.glsl.utility.GLSLManagedShader
config
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Sets middle part of a light shader (after properties have been extracted from deferred-shading-texturesprotected String[]
protected void
setupDynamicUniforms
(javax.media.opengl.GL gl, GLSLDisplay disp, Object data, int shaderNo) Function that loads uniforms of the represented Shader.protected void
setupShader
(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_stamp
Methods 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:GLSLShader
Function that loads uniforms of the represented Shader.- Overrides:
setupDynamicUniforms
in classGLSLShader
disp
- GLSLDisplay that tries using this shaderdata
- The GroIMP-Shader-Object represented by this shader.
-
setupShader
- Overrides:
setupShader
in classGLSLShader
-
getLightFunction
Sets middle part of a light shader (after properties have been extracted from deferred-shading-textures- Returns:
-
getVertexShader
- Overrides:
getVertexShader
in classGLSLShader
- Returns:
-
canDisplayShadows
public boolean canDisplayShadows() -
toString
-