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