Simple question:
Are alpha values interpolated between alpha values of a polygon vertices as well as RGB values, across a polygon in smooth shading? It is not clear from the red book.
Many thanks,
Yossi
If you would have spent the few minutes it takes to post a question here on trying it yourself instead, you would have got an answer much faster. But yes, it is interpolated in the same way.
Originally posted by Bob:
If you would have spent the few minutes it takes to post a question here on trying it yourself instead, you would have got an answer much faster.
Bob, you sound angry !
Actually, I have another comment: let’s say that the alpha value is not interpolated and I do that:
glBegin(GL_LINE);
glColor4f(1,1,1,0);
glVertex3f(0,0,0);
glColor4f(1,1,1,1);
glVertex3f(1,0,0);
glEnd();
If the alpha is not interpolated, which alpha value is used for my line ???
Regards.
Eric
P.S.: do not take offense, yossi !!! I am just being silly…
Hi Bob,
I did try it myself before posting this question. Just wanted a confirmation from the Gurus.
Anyway, thanks for your answer.
Yossi
Bob: You could have saved some work too if you just had written “yes”…
Ok, I was not angry, I was not mean (or at least not meant to), I was in a hurry, thats all. So I apologise for any harm done
MS: 1-0 to you I suppose…