Package com.googlecode.gwtgl.example.client.util.math

Examples of com.googlecode.gwtgl.example.client.util.math.FloatMatrix4x4


        flatLightDirection[2]);
    webGLWrapper.uniform3f(shaderProgram
        .getUniformLocation("directionalColor"), directionalColorRed,
        directionalColorGreen, directionalColorBlue);

    FloatMatrix4x4 normalMatrix = rotationMatrix.inverse();
    normalMatrix = normalMatrix.transpose();
    webGLWrapper.uniformMatrix4fv(shaderProgram
        .getUniformLocation("normalMatrix"), false, normalMatrix
        .getColumnWiseFlatData());

    checkErrors();
    webGLWrapper.drawArrays(PrimitiveRenderingMode.TRIANGLES, 0, 36);
    checkErrors();
View Full Code Here

TOP

Related Classes of com.googlecode.gwtgl.example.client.util.math.FloatMatrix4x4

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.