java.lang.Object
de.grogra.glsl.utility.ShaderConfiguration
de.grogra.glsl.material.MaterialConfiguration
de.grogra.glsl.material.TranspMaterialConfiguration
This class defines a state for a glsl-Shader, where individual ChannelMaps
may register Textures, TmpVariables or UniformVariables. It also may complete
a shader by querying all needed input from a GLSLCachedMaterial.
- Author:
- shi
-
Field Summary
Fields inherited from class de.grogra.glsl.material.MaterialConfiguration
IT_AMBIENT, IT_DIFFUSE, IT_DIFFUSE_TRANSPERENCY, IT_EMISSIVE, IT_NORMAL, IT_POSITION, IT_PROLOGUE, IT_SHININESS, IT_SPECULAR, IT_TRANSPERENCY, IT_TRANSPERENCY_SHININESS
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
(Result[] input) protected boolean
Should be implemented by ReferenceKey!void
Methods inherited from class de.grogra.glsl.material.MaterialConfiguration
equals, getDefaultInputChannel, getShaderByDefaultCollection, hashCode, isShaderAntialiasing, set, setThisToOther, setupDynamicUniforms, setupShader
Methods inherited from class de.grogra.glsl.utility.ShaderConfiguration
bindTextures, cleanUp, clearTmpVariables, getBit, getReferenceKeyValue, registerCustomTexture, registerFunc, registerGlobalConst, registerNewTmpVar, registerNewUniform, registerTexture, setBit, setupTextures, setVersion
-
Constructor Details
-
TranspMaterialConfiguration
public TranspMaterialConfiguration()
-
-
Method Details
-
completeShader
- Overrides:
completeShader
in classMaterialConfiguration
-
set
- Overrides:
set
in classShaderConfiguration
-
perInstance
protected boolean perInstance()Should be implemented by ReferenceKey! using a Interface or such- Overrides:
perInstance
in classMaterialConfiguration
-
clone
- Overrides:
clone
in classMaterialConfiguration
-