title: glsl vector plus scalar
body: <p>I searched a lot but could not find if the following statements are legal in a <code>#version 330</code> vertex shader:</p>
  
  <pre><code>#define note_the_following_whitespaces            0x01
  
  (layout location = 7) vec3 out ov;
  (layout location = 8) vec3 out rv;
  void main() {
      rv = vec3(1.0,2.0,3.0);
      ov = (1.0+rv)/2.0;
      gl_Position = [whatever]...
  }
  </code></pre>
  
  <p>I'm referring particularly to the <code>(1.0+rv)</code> - the shader compiles fine on every nVidia card, but refuses to compile on ATI cards. Unfortunately I don't have the exact compilation result, I just know that the compilation was unsuccessful.</p>