Package com.ngt.jopenmetaverse.shared.sim.rendering.math

Examples of com.ngt.jopenmetaverse.shared.sim.rendering.math.Vectorf.toArray()


    // Set the lighting related uniforms
    GL20.glUniform1i(uUseLightingUniform, uUseLighting);
    Vectorf adjustedLightDirection = lightingDirection.toUnitVector()
        .multiply(-1);
    float[] flatLightDirection = adjustedLightDirection.toArray();
    GL20.glUniform3f(uLightingDirectionUniform, flatLightDirection[0], flatLightDirection[1],
        flatLightDirection[2]);   
    GL20.glUniform3f(uAmbientColorUniform, ambientColorRed, ambientColorGreen, ambientColorBlue);   
    GL20.glUniform3f(uDirectionalColorUniform, directionalColorRed, directionalColorGreen, directionalColorBlue)
View Full Code Here


    // Set the lighting related uniforms
    GL20.glUniform1i(uUseLightingUniform, uUseLighting);
    Vectorf adjustedLightDirection = lightingDirection.toUnitVector()
        .multiply(-1);
    float[] flatLightDirection = adjustedLightDirection.toArray();
    GL20.glUniform3f(uLightingDirectionUniform, flatLightDirection[0], flatLightDirection[1],
        flatLightDirection[2]);   
    GL20.glUniform3f(uAmbientColorUniform, ambientColorRed, ambientColorGreen, ambientColorBlue);   
    GL20.glUniform3f(uDirectionalColorUniform, directionalColorRed, directionalColorGreen, directionalColorBlue)
View Full Code Here

    // Set the lighting related uniforms
    GL20.glUniform1i(uUseLightingUniform, uUseLighting);
    Vectorf adjustedLightDirection = lightingDirection.toUnitVector()
        .multiply(-1);
    float[] flatLightDirection = adjustedLightDirection.toArray();
    GL20.glUniform3f(uLightingDirectionUniform, flatLightDirection[0], flatLightDirection[1],
        flatLightDirection[2]);   
    GL20.glUniform3f(uAmbientColorUniform, ambientColorRed, ambientColorGreen, ambientColorBlue);   
    GL20.glUniform3f(uDirectionalColorUniform, directionalColorRed, directionalColorGreen, directionalColorBlue)
View Full Code Here

    // Set the lighting related uniforms
    GL20.glUniform1i(uUseLightingUniform, uUseLighting);
    Vectorf adjustedLightDirection = lightingDirection.toUnitVector()
        .multiply(-1);
    float[] flatLightDirection = adjustedLightDirection.toArray();
    GL20.glUniform3f(uLightingDirectionUniform, flatLightDirection[0], flatLightDirection[1],
        flatLightDirection[2]);   
    GL20.glUniform3f(uAmbientColorUniform, ambientColorRed, ambientColorGreen, ambientColorBlue);   
    GL20.glUniform3f(uDirectionalColorUniform, directionalColorRed, directionalColorGreen, directionalColorBlue)
View Full Code Here

    // Set the lighting related uniforms
    GL20.glUniform1i(uUseLightingUniform, uUseLighting);
    Vectorf adjustedLightDirection = lightingDirection.toUnitVector()
        .multiply(-1);
    float[] flatLightDirection = adjustedLightDirection.toArray();
    GL20.glUniform3f(uLightingDirectionUniform, flatLightDirection[0], flatLightDirection[1],
        flatLightDirection[2]);   
    GL20.glUniform3f(uAmbientColorUniform, ambientColorRed, ambientColorGreen, ambientColorBlue);   
    GL20.glUniform3f(uDirectionalColorUniform, directionalColorRed, directionalColorGreen, directionalColorBlue)
View Full Code Here

    // Set the lighting related uniforms
    GL20.glUniform1i(uUseLightingUniform, uUseLighting);
    Vectorf adjustedLightDirection = lightingDirection.toUnitVector()
        .multiply(-1);
    float[] flatLightDirection = adjustedLightDirection.toArray();
    GL20.glUniform3f(uLightingDirectionUniform, flatLightDirection[0], flatLightDirection[1],
        flatLightDirection[2]);   
    GL20.glUniform3f(uAmbientColorUniform, ambientColorRed, ambientColorGreen, ambientColorBlue);   
    GL20.glUniform3f(uDirectionalColorUniform, directionalColorRed, directionalColorGreen, directionalColorBlue)
View Full Code Here

    // Set the lighting related uniforms
    GL20.glUniform1i(uUseLightingUniform, uUseLighting);
    Vectorf adjustedLightDirection = lightingDirection.toUnitVector()
        .multiply(-1);
    float[] flatLightDirection = adjustedLightDirection.toArray();
    GL20.glUniform3f(uLightingDirectionUniform, flatLightDirection[0], flatLightDirection[1],
        flatLightDirection[2]);   
    GL20.glUniform3f(uAmbientColorUniform, ambientColorRed, ambientColorGreen, ambientColorBlue);   
    GL20.glUniform3f(uDirectionalColorUniform, directionalColorRed, directionalColorGreen, directionalColorBlue)
View Full Code Here

    // Set the lighting related uniforms
        GL20.glUniform1i(uUseLightingUniform, uUseLighting);
        Vectorf adjustedLightDirection = lightingDirection.toUnitVector()
                    .multiply(-1);
        float[] flatLightDirection = adjustedLightDirection.toArray();
        GL20.glUniform3f(uLightingDirectionUniform, flatLightDirection[0], flatLightDirection[1],
                    flatLightDirection[2]);   
        GL20.glUniform3f(uAmbientColorUniform, ambientColorRed, ambientColorGreen, ambientColorBlue);   
        GL20.glUniform3f(uDirectionalColorUniform, directionalColorRed, directionalColorGreen, directionalColorBlue)
   
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.