java.lang.Object
de.grogra.glsl.utility.ShaderConfiguration
de.grogra.glsl.light.LightShaderConfiguration
-
Field Summary
Fields inherited from class de.grogra.glsl.utility.ShaderConfiguration
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionclone()
String[]
completeShader
(String lightFunction) Complete a shader to be used as a light.boolean
getShaderByDefaultCollection
(GLSLDisplay disp, Object reference) int
hashCode()
boolean
boolean
boolean
isShadow()
void
void
set
(OpenGLState glState, GLSLDisplay disp, Object obj) protected void
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) toString()
Methods inherited from class de.grogra.glsl.utility.ShaderConfiguration
bindTextures, cleanUp, clearTmpVariables, getBit, getReferenceKeyValue, perInstance, registerCustomTexture, registerFunc, registerGlobalConst, registerNewTmpVar, registerNewUniform, registerTexture, set, setBit, setupTextures, setVersion
-
Field Details
-
getNormalSig
- See Also:
-
getNormal
- See Also:
-
-
Constructor Details
-
LightShaderConfiguration
public LightShaderConfiguration()
-
-
Method Details
-
setThisToOther
Description copied from class:ShaderConfiguration
Sets all permanent attributes of this instance to the values from other. This method is used by clone() to generate a shallow copy of a ShaderConfiguration- Overrides:
setThisToOther
in classShaderConfiguration
- Parameters:
other
- Reference from which attributes are copied
-
clone
- Specified by:
clone
in classShaderConfiguration
-
hashCode
public int hashCode()- Overrides:
hashCode
in classShaderConfiguration
-
equals
- Overrides:
equals
in classShaderConfiguration
-
set
- Overrides:
set
in classShaderConfiguration
-
isShadow
public boolean isShadow() -
isPerspective
public boolean isPerspective() -
isPhysical
public boolean isPhysical() -
toString
-
registerEyePosFunc
public void registerEyePosFunc() -
setupDynamicUniforms
- Overrides:
setupDynamicUniforms
in classShaderConfiguration
-
setupShader
- Overrides:
setupShader
in classShaderConfiguration
-
completeShader
Complete a shader to be used as a light.- Parameters:
lightFunction
- added just before color is set. should modify variables diff and spec (vec3).- Returns:
-
getShaderByDefaultCollection
- Specified by:
getShaderByDefaultCollection
in classShaderConfiguration
-