title: How does the default GLSL shaders look like? for version 330
body: <p>What do the default vertex, fragment and geometry GLSL shaders look like for version #330?</p>
  
  <p>I'll be using <code>#version 330</code> GLSL Version 3.30 NVIDIA via Cg compiler, because that is what my graphics card supports.</p>
  
  <p>With default shaders, I mean shaders that do the same exact thing as the graphics card would do when the shader program is turned off. </p>
  
  <p>I can't find a good example for <code>#version 330</code>. Been googling all day. Not sure if the term <em>default shader</em> is called something else like trivial or basic and if that is why I can't find it.</p>
  
  <p>Any recommendations for a book with version 330 or link to an easy beginner tutorial with version 330 would be great as well.</p>
  
  <p>example of a trivial vertex shader in #version 110, does the default vertex transformation</p>
  
  <pre><code>#version 110
  
  void main()
  {
      gl_Position = gl_ProjectionMatrix * gl_ModelViewMatrix * gl_Vertex;
  }
  </code></pre>
  
  <p>example of a trivial fragment shader in #version 110, turns color into red</p>
  
  <pre><code>#version 110
  
  void main()
  {
      gl_FragColor = vec4(1.0, 0.0, 0.0, 1.0);
  }
  </code></pre>