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

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


    // Lighting
    webGLWrapper.uniform3f(
        shaderProgram.getUniformLocation("ambientColor"),
        ambientColorRed, ambientColorGreen, ambientColorBlue);
    Vectorf adjustedLightDirection = lightingDirection.toUnitVector()
        .multiply(-1);
    float[] flatLightDirection = adjustedLightDirection.toArray();
    webGLWrapper.uniform3f(shaderProgram
        .getUniformLocation("lightingDirection"),
        flatLightDirection[0], flatLightDirection[1],
        flatLightDirection[2]);
    webGLWrapper.uniform3f(shaderProgram
View Full Code Here

TOP

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

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.