Package de.lv.jvoxgl.render

Examples of de.lv.jvoxgl.render.ShaderProgram


   
    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);
View Full Code Here

TOP

Related Classes of de.lv.jvoxgl.render.ShaderProgram

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.