Package org.lwjgl.test.opengles.util

Examples of org.lwjgl.test.opengles.util.ShaderProgram


    fsh = new Shader(GL_FRAGMENT_SHADER, "varying lowp vec3 color;\n" +
                                         "void main(void) {\n" +
                                         "\tgl_FragColor = vec4(color, 1.0);\n" +
                                         "}");

    program = new ShaderProgram(vsh, fsh);
    program.enable();

    LIGHT_POS = program.getUniformLocation("LIGHT_POS");

    MVP = program.getUniformLocation("MODEL_VIEW_PROJECTION_MATRIX");
View Full Code Here


    fsh = new Shader(GL_FRAGMENT_SHADER, "void main(void) {\n" +
                                         "\tgl_FragColor = vec4(1.0);\n" +
                                         "}");

    program = new ShaderProgram(vsh, fsh);
    program.enable();

    uniMVP = program.getUniformLocation("MODEL_VIEW_PROJECTION_MATRIX");

    final int vPosition = program.getAttributeLocation("vPosition");
View Full Code Here

TOP

Related Classes of org.lwjgl.test.opengles.util.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.