Package mdesl.graphics.glutils

Examples of mdesl.graphics.glutils.ShaderProgram.use()


  public void create() throws LWJGLException {
    super.create();
   
    ShaderProgram shader = new ShaderProgram(VERT_SHADER, FRAG_SHADER, SpriteBatch.ATTRIBUTES);
    //setup our custom uniforms
    shader.use();
   
    shader.setUniformi(TEX_ALT, 1);
    shader.setUniformi(TEX_MASK, 2);
       
    System.out.println(VERT_SHADER);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.