title: Get component-wise maximum of vector in GLSL
body: <p>I need to get the maximum of a <code>vec3</code> in GLSL. Currently I am doing </p>
  
  <pre><code>max(max(col.r, col.g),col.b)
  </code></pre>
  
  <p>It works. But I am wondering if there a better way to do this with one built-in function call? </p>