Module gl1

Class GLSLGGXShader

All Implemented Interfaces:
GLSLOpenGLObject

public class GLSLGGXShader extends GLSLMaterial
GLSL fallback renderer for the GGX shader (Proteus 3D view). Renders using Phong-like shading with the GGX diffuse and specular channels.
Author:
MH at YNL 2026
  • Constructor Details

    • GLSLGGXShader

      public GLSLGGXShader()
  • Method Details

    • getAllChannels

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

      public Class instanceFor()
      Returns GGX.class — the material type this shader handles.
      Overrides:
      instanceFor in class GLSLShader
      Returns:
      Class represented by this Shader
    • needsRecompilation

      public boolean needsRecompilation(Object s)
      Returns false; the GGX GLSL shader never requires recompilation.
      Overrides:
      needsRecompilation in class GLSLShader
      Returns:
      true, if Sourcecode needs to be regenerated and recompiled
    • getInstance

      public GLSLManagedShader getInstance()
      Returns a fresh instance so each material gets its own compiled shader.
      Overrides:
      getInstance in class GLSLShader
      Returns: