Hi,
as you know one can get a reflection map with
glEnable(GL_TEXTURE_GEN_S);
glEnable(GL_TEXTURE_GEN_T);
glTexGeni( GL_S, GL_TEXTURE_GEN_MODE, GL_SPHERE_MAP );
glTexGeni( GL_T, GL_TEXTURE_GEN_MODE, GL_SPHERE_MAP );
So, if I now draw a Quad, I get all the quad surface with a reflex.
Instead, since I previously did put on that quad a map with alpha,
I would like to get the reflex only where the previous map has alpha > 0.
For example, the first map is a big character "A", thus the reflection
should apply only on the "A" and not on the whole Quad surface.
I hope I was clear.
How to do?
Currently I use:
glEnable(GL_BLEND);
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
So what parameter should I pass there?
Or should I use multiple map? How?
Best Regards
--
Lorenzo
email: email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Mac-opengl mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/mac-opengl/email@hidden
This email sent to email@hidden