On Fri, Oct 21, 2011 at 11:49:44AM -0700, Ian Romanick wrote:
> From: Ian Romanick
>
> Consider the following vertex shader and fragment shader:
>
> // vertex shader
> varying vec4 v;
> uniform vec4 u;
>
> void main() { gl_Position = vec4(0.0); v = u; }
>
> // fragment shader
> void main() { g
On 10/21/2011 11:49 AM, Ian Romanick wrote:
> From: Ian Romanick
>
> Consider the following vertex shader and fragment shader:
>
> // vertex shader
> varying vec4 v;
> uniform vec4 u;
>
> void main() { gl_Position = vec4(0.0); v = u; }
>
> // fragment shader
> void main() { gl_FragColor = vec4
From: Ian Romanick
Consider the following vertex shader and fragment shader:
// vertex shader
varying vec4 v;
uniform vec4 u;
void main() { gl_Position = vec4(0.0); v = u; }
// fragment shader
void main() { gl_FragColor = vec4(0.0); }
Since the fragment shader does not use 'v', it is demoted