color

opacity

);

// uColor b

shader

setFloat

color

opacity

);

// uColor a

// Initialize sampler uniform.

shader

setImageSampler

image

);

Observe that the indices used with FragmentShader.setFloat
do not count the sampler2D uniform.
This uniform is set separately with FragmentShader.setImageSampler,
with the index starting over at 0.

Any float uniforms that are left uninitialized will default to 0.0.

Current position