PDA

View Full Version : per-pixel lighting and translucence



Lev
05-10-2001, 07:34 AM
I was thinking about it recently and saw a following problem: since per-pixel lighting requires multiply passes how can i light and render translucent objects? anyone has any ideas about that?

-Lev

davepermen
05-10-2001, 08:56 AM
i got it with 2 passes

first: diffuse
second: specular

and the trick is.. glass even has specular if it is completely transparent =>

first: diffuse blended
second: specular added

works and is so far so correct