protected void updateShaderUniforms(Shader shader) {
        ListMap<String, Uniform> uniforms = shader.getUniformMap();
        for (int i = 0; i < uniforms.size(); i++) {
            Uniform uniform = uniforms.getValue(i);
            if (uniform.isUpdateNeeded()) {
                updateUniform(shader, uniform);
            }
        }
    }
Updates the buffer block for the shader.

@param shader the shader.
@param bufferBlock the storage block.
jme3-core/src/main/java/com/jme3/renderer/opengl/GLRenderer.java