Members of Uniform Buffers are treated as individual Uniforms by the validation.
In Shader:
layout(std140)
uniform ubCamera
{
mat4 uViewMatrix;
mat4 uProjectionMatrix;
vec3 uCameraPosition;
float uFocalLength;
float uNear;
float uFar;
};
Generates a list of warnings:
[09:32:51][Warning] Uniform `uCameraPosition' is used in the shader but was not set via GLOW. [Program 48: uvs]
[09:32:51][Warning] (This also applies for uniforms with default values. We recommend making them non-uniform if you don't set them.)
[09:32:51][Warning] (This warning can be disabled via setWarnOnUnchangedUniforms(false).)
[09:32:51][Warning] Uniform `uFar' is used in the shader but was not set via GLOW. [Program 48: uvs]
[09:32:51][Warning] (This also applies for uniforms with default values. We recommend making them non-uniform if you don't set them.)
[09:32:51][Warning] (This warning can be disabled via setWarnOnUnchangedUniforms(false).)
[09:32:51][Warning] Uniform `uFocalLength' is used in the shader but was not set via GLOW. [Program 48: uvs]
[09:32:51][Warning] (This also applies for uniforms with default values. We recommend making them non-uniform if you don't set them.)
[09:32:51][Warning] (This warning can be disabled via setWarnOnUnchangedUniforms(false).)
[09:32:51][Warning] Uniform `uNear' is used in the shader but was not set via GLOW. [Program 48: uvs]
[09:32:51][Warning] (This also applies for uniforms with default values. We recommend making them non-uniform if you don't set them.)
[09:32:51][Warning] (This warning can be disabled via setWarnOnUnchangedUniforms(false).)
[09:32:51][Warning] Uniform `uProjectionMatrix' is used in the shader but was not set via GLOW. [Program 48: uvs]
[09:32:51][Warning] (This also applies for uniforms with default values. We recommend making them non-uniform if you don't set them.)
[09:32:51][Warning] (This warning can be disabled via setWarnOnUnchangedUniforms(false).)
[09:32:51][Warning] Uniform `uViewMatrix' is used in the shader but was not set via GLOW. [Program 48: uvs]
[09:32:51][Warning] (This also applies for uniforms with default values. We recommend making them non-uniform if you don't set them.)
[09:32:51][Warning] (This warning can be disabled via setWarnOnUnchangedUniforms(false).)
(even when the Uniform Buffer itself is properly set through glow)