To declare a uniform in GLSL we simply add the uniform keyword to a shader with a type and a name. From that point on we can use the newly declared uniform in the shader. Let's see if this time we can set the color of the triangle via a uniform
Your Commento.io account has been suspended. Go to the Commento dashboard to resolve this.
Shaders & GLSL
notes + algo + examples + experiments