PDA

View Full Version : lighting and aplha blending



lokiman
12-14-2003, 08:15 AM
hi all!

i have a little problem:
can i use lighting and aplha blending together??? if yes, how???

thnx for advise

Leyder Dylan
12-14-2003, 11:25 AM
Lightmapping ?

sqrt[-1]
12-14-2003, 05:54 PM
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.

AdrianD
12-16-2003, 12:29 PM
the correct answer is: yes. glEnable(GL_BLEND); glEnable(GL_LIGHTING);

[This message has been edited by AdrianD (edited 12-16-2003).]