Class GuiShader


public class GuiShader extends ShaderProgram
Extends the ShaderProgram and is responsible for handling the shaders for all 2D UI components.
  • Constructor Details

    • GuiShader

      public GuiShader()
  • Method Details

    • loadTransformation

      public void loadTransformation(org.joml.Matrix4f matrix)
      Loads the transformation matrix to the shader.
      Parameters:
      matrix -
    • bindAttributes

      protected void bindAttributes()
      Binds all Attributes found in the GLSL file.
      Specified by:
      bindAttributes in class ShaderProgram
    • getAllUniformLocations

      protected void getAllUniformLocations()
      Finds all uniform loactions in the GLSL file.
      Specified by:
      getAllUniformLocations in class ShaderProgram