I'm looking for a node that allocates a value based on the normal's angle to the camera (I've seen some people use it to fake fresnel), but I can't seem to remember what it was called, so was wondering if anyone could clue me in? Cheers.

  • 1
    $\begingroup$ Perhaps Layer Weight? $\endgroup$ – lbalazscs Nov 27 '16 at 12:13
  • $\begingroup$ @lbalazscs I think that's the one! $\endgroup$ – Danial Nov 27 '16 at 12:58
  • $\begingroup$ You do know there is an actual Fresnel node right? $\endgroup$ – PGmath Nov 28 '16 at 14:57
  • $\begingroup$ @PGmath Yeah. I'm not using it for fresnel though, and layer weight seems to be more flexible. $\endgroup$ – Danial Nov 28 '16 at 15:02

The Vector Math 'Dot Product' node takes two vectors and returns a Value based on the magnitudes of those vectors and the angle between them. If you pass this node the Normal and Incoming vectors then the result will be larger if the ray is along the normal and approach zero as it becomes more of a glancing blow. Specifically,

Dot Product = MagnitudeA x MagnitudeB x cos(angle)

So if the two vectors are Normalized (which can be ensured by passing them through a Vector Math 'Normalize' node) then the Value output by the Dot Product will simply be the Cosine of the angle between them.

This can be used to mimic the Layer Weight 'Facing' node as follows :


Or you can emulate a Fresnel effect by including a Power Math node :


Varying the inputs or manipulating the Vectors can achieve effects not normally possible with the standard 'Fresnel' and 'Layer Weight' input nodes.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.