Sign in to follow this  
Chris_F

Pre-Integrated Skin Shader

Recommended Posts

I'm trying to implement this shader I saw here, but it is giving me problems.

 

Here is the lookup texture I generated: link
 

And when I generate my lighting value by looking up (N.L, 1.0) I expect to get the equivelent of normal lambert diffuse, but instead I get this: link

 

It doesn't even come close to lighting the entire hemisphere, and I can't figure out why.

Share this post


Link to post
Share on other sites

Seeing that the transition from unlit to lit occurs 50% of the way across your texture, I'd guess that your tex-coord should take the -1 to +1 range of N.L into account -- e.g. (N.L*0.5+0.5, 1.0)

 

Edit: ninja'd me ph34r.png

Edited by Hodgman

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