world = new World(16, 256, 16);
JVoxGL voxgl = new JVoxGL(world, 1024,768);
JVoxGLTest.createChunk(world);
ShaderProgram shader = new ShaderProgram(2);
try {
shader.loadShader(0, GL20.GL_VERTEX_SHADER, new File("vertex.glsl"));
shader.loadShader(1, GL20.GL_FRAGMENT_SHADER, new File("fragment.glsl"));
} catch (IOException e) {
e.printStackTrace();
}
HashMap<Integer, String> att = new HashMap<Integer, String>();
att.put(0, "in_Position");
shader.create(att);
world.setShader(shader);
cam = new FPSCameraController(0, -30, -40);
Mouse.setGrabbed(true);