de.grogra.imp3d.glsl.light
public class LightShaderConfiguration extends ShaderConfiguration
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
getNormal |
static java.lang.String |
getNormalSig |
constVar, customSampler, funcMap, referenceKey, sampler, T_BOOL, T_FLOAT, T_MAT3, T_SAMPLER2D, T_SAMPLER2DRECT, T_SAMPLER2DSHADOW, T_SAMPLERCUBE, T_VEC2, T_VEC3, T_VEC4, uniform, USE_DERIVATES, USE_GLOBAL_POS, USE_LOCAL_POS, USE_UV, var, version| Constructor and Description |
|---|
LightShaderConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
ShaderConfiguration |
clone() |
java.lang.String[] |
completeShader(java.lang.String lightFunction)
Complete a shader to be used as a light.
|
boolean |
equals(java.lang.Object obj) |
GLSLManagedShader |
getShaderByDefaultCollection(GLSLDisplay disp,
java.lang.Object reference) |
int |
hashCode() |
boolean |
isPerspective() |
boolean |
isPhysical() |
boolean |
isShadow() |
void |
registerEyePosFunc() |
void |
set(OpenGLState glState,
GLSLDisplay disp,
java.lang.Object obj) |
protected void |
setThisToOther(ShaderConfiguration other)
Sets all permanent attributes of this instance to the values from other.
|
void |
setupDynamicUniforms(javax.media.opengl.GL gl,
GLSLDisplay disp,
int shaderNo) |
void |
setupShader(javax.media.opengl.GL gl,
GLSLDisplay disp,
int shaderNo) |
java.lang.String |
toString() |
bindTextures, cleanUp, clearTmpVariables, getBit, getReferenceKeyValue, perInstance, registerCustomTexture, registerFunc, registerGlobalConst, registerNewTmpVar, registerNewUniform, registerTexture, set, setBit, setupTextures, setVersionpublic static final java.lang.String getNormal
public static final java.lang.String getNormalSig
public ShaderConfiguration clone()
clone in class ShaderConfigurationpublic java.lang.String[] completeShader(java.lang.String lightFunction)
lightFunction - added just before color is set.
should modify variables diff and spec (vec3).public boolean equals(java.lang.Object obj)
equals in class ShaderConfigurationpublic GLSLManagedShader getShaderByDefaultCollection(GLSLDisplay disp, java.lang.Object reference)
getShaderByDefaultCollection in class ShaderConfigurationpublic int hashCode()
hashCode in class ShaderConfigurationpublic boolean isPerspective()
public boolean isPhysical()
public boolean isShadow()
public void registerEyePosFunc()
public void set(OpenGLState glState, GLSLDisplay disp, java.lang.Object obj)
set in class ShaderConfigurationprotected void setThisToOther(ShaderConfiguration other)
ShaderConfigurationsetThisToOther in class ShaderConfigurationother - Reference from which attributes are copiedpublic void setupDynamicUniforms(javax.media.opengl.GL gl,
GLSLDisplay disp,
int shaderNo)
setupDynamicUniforms in class ShaderConfigurationpublic void setupShader(javax.media.opengl.GL gl,
GLSLDisplay disp,
int shaderNo)
setupShader in class ShaderConfigurationpublic java.lang.String toString()
toString in class java.lang.Object