PDA

View Full Version : Two side lighting model.



yakovm
03-17-2010, 10:11 AM
I have a mesh in which not all surfaces are winded consistently in same direction also I don't know the direction of any face if it is CW or CCW .In order to solve the problem I have to use two side lighting model.
I will be very grateful for your advice how to implement it

ZbuffeR
03-17-2010, 12:12 PM
No, two sided lighting allow 2 different material, and selected according to normal direction, not CW or CCW winding.

You have to disable backface culling however.