Module gl1

Class GLSLPhong

All Implemented Interfaces:
GLSLOpenGLObject

public class GLSLPhong extends GLSLMaterial
Implementation of Shader: Phong. Will recompile on every property change!
Author:
Konni Hartmann
  • Constructor Details

    • GLSLPhong

      public GLSLPhong()
  • Method Details

    • getAllChannels

      protected Result[] getAllChannels(Object sha)
      Specified by:
      getAllChannels in class GLSLMaterial
    • instanceFor

      public Class instanceFor()
      Overrides:
      instanceFor in class GLSLShader
      Returns:
      Class represented by this Shader
    • needsRecompilation

      public boolean needsRecompilation(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
    • 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:
    • mayDiscard

      public boolean mayDiscard(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
    • isOpaque

      public boolean isOpaque(Object s)
      Overrides:
      isOpaque in class GLSLMaterial