dep
08-31-2002, 05:20 AM
Hi all, this is my first post here!
I'm looking for information on how to use two texture units to do both GL lighting and per-vertex alpha.
One texture has RGB information, but no alpha. The other texture has only alpha information. I want to copy the alpha from the second texture to the first with a combine operation. I want to change the alpha region every time, so I cannot simply use an RGBA texture.
I'd like to do this since it's not possible to use vertex color alpha at the same time as lighting.
I'm not to famliar with the multitexturing parts of GL so any pointers on what combine modes I'd have to use would be most welcome.
Thanks,
dep.
I'm looking for information on how to use two texture units to do both GL lighting and per-vertex alpha.
One texture has RGB information, but no alpha. The other texture has only alpha information. I want to copy the alpha from the second texture to the first with a combine operation. I want to change the alpha region every time, so I cannot simply use an RGBA texture.
I'd like to do this since it's not possible to use vertex color alpha at the same time as lighting.
I'm not to famliar with the multitexturing parts of GL so any pointers on what combine modes I'd have to use would be most welcome.
Thanks,
dep.