blob: cf10ff37f115969cf4e67a2c972de2d2e5acb06f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
package net.tylermurphy.Minecraft.Render.Shaders;
import org.joml.Matrix4f;
import net.tylermurphy.Minecraft.Render.Util.ShaderProgram;
public class GuiShader extends ShaderProgram{
private static final String VERTEX_FILE = "Gui_VS.glsl";
private static final String FRAGMENT_FILE = "Gui_FS.glsl";
private int location_transformationMatrix;
public GuiShader() {
super(VERTEX_FILE, FRAGMENT_FILE);
}
public void loadTransformation(Matrix4f matrix){
super.loadMatrix(location_transformationMatrix, matrix);
}
protected void getAllUniformLocations() {
location_transformationMatrix = super.getUniformLocation("transformationMatrix");
}
protected void bindAttributes() {
super.bindAttribute(0, "position");
}
}
|