* the new value
* @param rowMajor
* true if is this in row major order
*/
public void setUniform(final String name, final ReadOnlyMatrix4[] values, final boolean rowMajor) {
final ShaderVariableMatrix4Array shaderUniform = getShaderUniform(name, ShaderVariableMatrix4Array.class);
// prepare buffer for writing
FloatBuffer matrixBuffer = shaderUniform.matrixBuffer;
if (matrixBuffer == null || matrixBuffer.capacity() < values.length * 16) {
matrixBuffer = BufferUtils.createFloatBuffer(values.length * 16);
shaderUniform.matrixBuffer = matrixBuffer;