View Full Version : varying variables

02-16-2007, 04:35 AM
Just for clarification...

I take it when a varying variable is passed from vertex shader to fragment shader its linearly interpolated? ok, what exactly does this mean? I assume its approximating the position in a plane or something?

Anyhow, I suppose this would imply using a varying variable as a position or a flag would be a no no? But vectors are ok because they are normalized?

02-16-2007, 06:18 AM
Simply put: texture coordinate is a varying variable.
Each varying variable is interpolated in such way, that it's perspective-correct. Varying variables are passed through floating point vectors.