-
lighting and aplha blending
hi all!
i have a little problem:
can i use lighting and aplha blending together??? if yes, how???
thnx for advise
-
Member
Regular Contributor
Re: lighting and aplha blending
-
Senior Member
OpenGL Pro
Re: lighting and aplha blending
There are many ways of doing this. Please explain your situation better.
If you want a constant alpha, set the alpha of the diffuse material property and enable blending as usual.
If you want per-vertex alpha, use color material mode, pass a color per-vertex and enable blending as usual.
-
Member
Regular Contributor
Re: lighting and aplha blending
the correct answer is: yes. glEnable(GL_BLEND); glEnable(GL_LIGHTING);
[This message has been edited by AdrianD (edited 12-16-2003).]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules