varying variables

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?

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.

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.