Sign in to follow this  
yakovm

Two side lighting model

Recommended Posts

yakovm    100
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

Share this post


Link to post
Share on other sites
jyk    2094
Quote:
Original post by yakovm
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
Personally, I'd try to fix the mesh data rather than try to code around it.

Where is the mesh data coming from? Why is the winding inconsistent? (I think there have been a couple of threads recently related to fixing incorrect windings - you might try searching the forum archives to see if you can find them.)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this