View Full Version : sampler info node

06 June 2010, 02:20 PM
I'm trying to make shader that will give different color according to the angel of the mesh.
Imagine a cube that has the top angled 45 degree
I want 45 degree - color 1
90 degree - color 2
0 degree - color 3 and so on ?

06 June 2010, 03:44 PM
Create ramp, delete ramps placement node.
Connect facing ratio to V-coord (V-ramp).
Color in bootm of ramp- 90 degree, at the top of ramp- 0 degree.
Plug ramp to shader color(or whatewer u nedd).

06 June 2010, 04:41 PM
it was deleting the placement node that i was missing

CGTalk Moderation
06 June 2010, 04:41 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.