de.grogra.imp3d.glsl.light
public class GLSLAreaLight extends GLSLLightShader
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
col0 |
protected java.lang.String |
radientPower |
protected java.lang.String[] |
v |
spec, stdVconfig| Constructor and Description |
|---|
GLSLAreaLight() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String[] |
getFragmentShader(java.lang.Object sh) |
GLSLShader |
getInstance()
For "hardcompiled" Shaders this method should return a new instance
|
java.lang.String |
getLightFunction()
Sets middle part of a light shader (after properties
have been extracted from deferred-shading-textures
|
java.lang.Class |
instanceFor() |
boolean |
needsRecompilation(java.lang.Object data)
Return false if Shader depends only on Uniforms
|
void |
setupDynamicUniforms(javax.media.opengl.GL gl,
GLSLDisplay disp,
java.lang.Object data,
int shaderNo)
Function that loads uniforms of the represented Shader.
|
protected void |
setupShader(javax.media.opengl.GL gl,
GLSLDisplay disp,
java.lang.Object data) |
canDisplayShadows, getLightShaderConfig, getVertexShader, toStringdeleteShader, getConfig, getMaterial_stamp, setConfig, setMaterial_stampactivateShader, cleanup, getShaderProgramNumber, printProgramInfoLogprotected java.lang.String col0
protected java.lang.String radientPower
protected java.lang.String[] v
public java.lang.String[] getFragmentShader(java.lang.Object sh)
getFragmentShader in class GLSLShaderpublic GLSLShader getInstance()
GLSLShadergetInstance in class GLSLShaderpublic java.lang.String getLightFunction()
GLSLLightShadergetLightFunction in class GLSLLightShaderpublic java.lang.Class instanceFor()
instanceFor in class GLSLShaderpublic boolean needsRecompilation(java.lang.Object data)
GLSLShaderneedsRecompilation in class GLSLShaderpublic void setupDynamicUniforms(javax.media.opengl.GL gl,
GLSLDisplay disp,
java.lang.Object data,
int shaderNo)
GLSLShadersetupDynamicUniforms in class GLSLLightShaderdisp - GLSLDisplay that tries using this shaderdata - The GroIMP-Shader-Object represented by this shader.protected void setupShader(javax.media.opengl.GL gl,
GLSLDisplay disp,
java.lang.Object data)
setupShader in class GLSLLightShader