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