axicer

ChunkShader.java

Jul 9th, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.51 KB | None | 0 0
  1. package fr.axicer.saintscube.render.shader;
  2.  
  3. import static org.lwjgl.opengl.GL20.*;
  4.  
  5. public class ChunkShader extends Shader{
  6.  
  7.     public static int vertexPositionLocation, vertexTexCoordLocation, vertexColorLocation;
  8.    
  9.     public ChunkShader() {
  10.         super("chunk");
  11.         ChunkShader.vertexPositionLocation = glGetAttribLocation(program, "position");
  12.         ChunkShader.vertexTexCoordLocation = glGetAttribLocation(program, "texcoord");
  13.         ChunkShader.vertexColorLocation = glGetAttribLocation(program, "color");
  14.     }
  15.    
  16. }
Advertisement
Add Comment
Please, Sign In to add comment