Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package fr.axicer.saintscube.render.shader;
- import static org.lwjgl.opengl.GL20.*;
- public class ChunkShader extends Shader{
- public static int vertexPositionLocation, vertexTexCoordLocation, vertexColorLocation;
- public ChunkShader() {
- super("chunk");
- ChunkShader.vertexPositionLocation = glGetAttribLocation(program, "position");
- ChunkShader.vertexTexCoordLocation = glGetAttribLocation(program, "texcoord");
- ChunkShader.vertexColorLocation = glGetAttribLocation(program, "color");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment