24 lines
711 B
Java
24 lines
711 B
Java
package io.github.hydos.ginger.engine.render.shaders;
|
|
|
|
import org.joml.Matrix4f;
|
|
|
|
public class GuiShader extends ShaderProgram
|
|
{
|
|
private static final String VERTEX_FILE = "guiVertexShader.glsl";
|
|
private static final String FRAGMENT_FILE = "guiFragmentShader.glsl";
|
|
private int location_transformationMatrix;
|
|
|
|
public GuiShader()
|
|
{ super(VERTEX_FILE, FRAGMENT_FILE); }
|
|
|
|
public void loadTransformation(Matrix4f matrix)
|
|
{ super.loadMatrix(location_transformationMatrix, matrix); }
|
|
|
|
@Override
|
|
protected void getAllUniformLocations()
|
|
{ location_transformationMatrix = super.getUniformLocation("transformationMatrix"); }
|
|
|
|
@Override
|
|
protected void bindAttributes()
|
|
{ super.bindAttribute(0, "position"); }
|
|
} |