de.grogra.imp3d.glsl.material
Class GLSLPhong
java.lang.Object
de.grogra.imp3d.glsl.utility.GLSLShader
de.grogra.imp3d.glsl.utility.GLSLManagedShader
de.grogra.imp3d.glsl.material.GLSLMaterial
de.grogra.imp3d.glsl.material.GLSLPhong
- All Implemented Interfaces:
- GLSLOpenGLObject
public class GLSLPhong
- extends GLSLMaterial
Implementation of Shader: Phong. Will recompile on every property change!
- Author:
- Konni Hartmann
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GLSLPhong
public GLSLPhong()
getAllChannels
protected Result[] getAllChannels(java.lang.Object sha)
- Specified by:
getAllChannels
in class GLSLMaterial
getInstance
public GLSLManagedShader getInstance()
- Description copied from class:
GLSLShader
- For "hardcompiled" Shaders this method should return a new instance
- Overrides:
getInstance
in class GLSLShader
- Returns:
instanceFor
public java.lang.Class instanceFor()
- Overrides:
instanceFor
in class GLSLShader
- Returns:
- Class represented by this Shader
isOpaque
public boolean isOpaque(java.lang.Object s)
- Overrides:
isOpaque
in class GLSLMaterial
mayDiscard
public boolean mayDiscard(java.lang.Object s)
- Overrides:
mayDiscard
in class GLSLMaterial
- Parameters:
s
- GroImp Shader that acts as a base for this shader
- Returns:
- True, if fragments may be discarded by this shader
needsRecompilation
public boolean needsRecompilation(java.lang.Object s)
- Description copied from class:
GLSLShader
- Return false if Shader depends only on Uniforms
- Overrides:
needsRecompilation
in class GLSLShader
- Returns:
- true, if Sourcecode needs to be regenerated and recompiled