uniform <type> <name>;
uniform float amplitude;
uniform float period;
uniform float phase;
uniform vec3 color;
gl.getUniformLocation(<program>, <uniform-name>)
.gl.uniform[1234][fi](<location>, ...)
to set the uniform value.
float
uniform --> gl.uniform1f(<location>, <value>)
vec2
uniform --> gl.uniform2f(<location>, <value-1>, <value-2>)
vec3
uniform --> gl.uniform3f(<location>, <value-1>, <value-2>, <value-3>)
vec4
uniform --> gl.uniform4f(<location>, <value-1>, <value-2>, <value-3>, <value-4>)
int
uniform --> gl.uniform1i(<location>, <value>)