Class SelectorShader

java.lang.Object
engine.shaders.ShaderProgram
engine.shaders.SelectorShader

public class SelectorShader extends ShaderProgram
Extends the ShaderProgram and is responsible for handling the shaders for the selector square used for selecting a zone.
  • Constructor Details

    • SelectorShader

      public SelectorShader()
  • Method Details

    • 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
    • loadTransformationMatrix

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

      public void loadViewMatrix(Camera camera)
      Loads the view matrix to the shader after creating it based on the camera.
      Parameters:
      camera -
    • loadProjectionMatrix

      public void loadProjectionMatrix(org.joml.Matrix4f projection)
      Loads the projection matrix to the shader.
      Parameters:
      projection -