PDA

View Full Version : Y+ normal value in camera space


PacManiac
05-13-2010, 06:05 PM
I'm trying to get a ramp shader to be white as the polygon normals seen from the camera are facing Y+ but can't find a way to get it to work with the samplerinfo or anything else I've tried.. Does anyone have an idea how to do this?

Thanks.

TaKIKO
05-14-2010, 01:58 PM
Try this:

Connect the out normal Y from the sampler info into the blender attribute of a blend colors node and plug that into a surface shader. I think that will get you the results you want.

PacManiac
05-14-2010, 05:32 PM
That works perfectly, thanks!

CGTalk Moderation
05-14-2010, 05:32 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.