java.lang.Object
de.grogra.glsl.utility.ShaderConfiguration
de.grogra.glsl.light.LightShaderConfiguration
-
Field Summary
FieldsFields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()String[]completeShader(String lightFunction) Complete a shader to be used as a light.booleangetShaderByDefaultCollection(GLSLDisplay disp, Object reference) inthashCode()booleanbooleanbooleanisShadow()voidvoidset(OpenGLState glState, GLSLDisplay disp, Object obj) protected voidSets all permanent attributes of this instance to the values from other.voidsetupDynamicUniforms(javax.media.opengl.GL gl, GLSLDisplay disp, int shaderNo) voidsetupShader(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:ShaderConfigurationSets 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:
setThisToOtherin classShaderConfiguration- Parameters:
other- Reference from which attributes are copied
-
clone
- Specified by:
clonein classShaderConfiguration
-
hashCode
public int hashCode()- Overrides:
hashCodein classShaderConfiguration
-
equals
- Overrides:
equalsin classShaderConfiguration
-
set
- Overrides:
setin classShaderConfiguration
-
isShadow
public boolean isShadow() -
isPerspective
public boolean isPerspective() -
isPhysical
public boolean isPhysical() -
toString
-
registerEyePosFunc
public void registerEyePosFunc() -
setupDynamicUniforms
- Overrides:
setupDynamicUniformsin classShaderConfiguration
-
setupShader
- Overrides:
setupShaderin 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:
getShaderByDefaultCollectionin classShaderConfiguration
-