GLSL Vector Container A vector in GLSL is a 1,2,3 or 4 component container for any of the basic types just mentioned. They can take the following form (n represents the number of components) — vecn: the default vector of n floats. bvecn: a vector of n booleans. ivecn: a vector of n integers. uvecn: a vector of n unsigned integers. dvecn: a vector of n double components
Shaders & GLSL
notes + algo + examples + experiments