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

picture loading error handler
15 thought(s)15

Shaders & GLSL

notes + algo + examples + experiments
programming
#CS
#openGl
shaders
creative coding
Get

Explore more quotes

Email:thur antony@gmail com128723 1pk4hyr.fwlc6av2t9
Tony Nemo
Tony Nemo
Tony Nemo