title: glsl infinity constant
body: <p>Does GLSL have any pre-defined constants for +/-infinity or NaN? I'm doing this as a workaround but I wonder if there is a cleaner way:</p>
  
  <pre><code>// GLSL FRAGMENT SHADER
  #version 410
  
  &lt;snip&gt;
  
  const float infinity = 1. / 0.;
  
  void main ()
  {
      &lt;snip&gt;
  }
  </code></pre>
  
  <p>I am aware of the <code>isinf</code> function but I need to assign infinity to a variable so that does not help me.</p>