VinceDeNice
04-21-2005, 05:06 AM
Hi!
I have made a simple tree by mapping a rgba texture on 2 crossed polygons... but those 2 polygons aren't transparent: they've got the colour of the material I use :p
how can I do to see only texels where there is the tree ?
isn't it by using
glAlphaFunc(GL_GREATER, 0);
glEnable(GL_ALPHA_TEST);just before drawing polygons ?
Is it something else to do or do I forget something important ?
I have made a simple tree by mapping a rgba texture on 2 crossed polygons... but those 2 polygons aren't transparent: they've got the colour of the material I use :p
how can I do to see only texels where there is the tree ?
isn't it by using
glAlphaFunc(GL_GREATER, 0);
glEnable(GL_ALPHA_TEST);just before drawing polygons ?
Is it something else to do or do I forget something important ?