de.grogra.imp3d.glsl.material
public class GLSLSideSwitchShader extends GLSLMaterial
config| Constructor and Description |
|---|
GLSLSideSwitchShader() |
| Modifier and Type | Method and Description |
|---|---|
protected Result[] |
getAllChannels(java.lang.Object sha) |
GLSLManagedShader |
getInstance()
For "hardcompiled" Shaders this method should return a new instance
|
java.lang.Class |
instanceFor() |
boolean |
isOpaque(java.lang.Object s) |
boolean |
mayDiscard(java.lang.Object s) |
boolean |
needsRecompilation(java.lang.Object s)
Return false if Shader depends only on Uniforms
|
protected 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 |
setupUniforms(javax.media.opengl.GL gl,
GLSLDisplay disp,
java.lang.Object s,
int shaderProgramNumber)
Function that loads uniforms of the represented Shader.
|
void |
updateShaderRefs(SideSwitchShader s) |
getFragmentShader, setupShaderdeleteShader, getConfig, getMaterial_stamp, setConfig, setMaterial_stampactivateShader, cleanup, getShaderProgramNumber, getVertexShader, printProgramInfoLogprotected Result[] getAllChannels(java.lang.Object sha)
getAllChannels in class GLSLMaterialpublic GLSLManagedShader getInstance()
GLSLShadergetInstance in class GLSLShaderpublic java.lang.Class instanceFor()
instanceFor in class GLSLShaderpublic boolean isOpaque(java.lang.Object s)
isOpaque in class GLSLMaterialpublic boolean mayDiscard(java.lang.Object s)
mayDiscard in class GLSLMaterials - GroImp Shader that acts as a base for this shaderpublic boolean needsRecompilation(java.lang.Object s)
GLSLShaderneedsRecompilation in class GLSLShaderprotected void setupDynamicUniforms(javax.media.opengl.GL gl,
GLSLDisplay disp,
java.lang.Object data,
int shaderNo)
GLSLShadersetupDynamicUniforms in class GLSLMaterialdisp - GLSLDisplay that tries using this shaderdata - The GroIMP-Shader-Object represented by this shader.protected void setupUniforms(javax.media.opengl.GL gl,
GLSLDisplay disp,
java.lang.Object s,
int shaderProgramNumber)
GLSLMaterialGLSLMaterial.setupShader(GL, GLSLDisplay, Object).
Use this to add special uniforms instead of overloading GLSLMaterial.setupShader(GL, GLSLDisplay, Object).
Used by SideSwitchShader to initialize both shaders.setupUniforms in class GLSLMaterialdisp - GLSLDisplay that tries using this shaders - The GroIMP-Shader-Object represented by this shader.public void updateShaderRefs(SideSwitchShader s)