Components of a vector can be accessed via vec.xwhere x is the first component of the vector. You can use .x, .y, .z and .w to access their first, second, third and fourth component respectively. GLSL also allows you to use rgba for colors or stpq for texture coordinates, accessing the same components.

picture loading error handler
15 thought(s)15

Shaders & GLSL

notes + algo + examples + experiments
creative coding

Explore more quotes

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