Fresnel

Fresnel is the effect describing how a surface’s reflectivity changes with the viewing angle. A surface reflects more light at grazing angles than it does when viewed head-on. In a graphics context, this is approximated from the angle between the surface normal and the view direction

Parameters:

  • normal is the normal of the surface.
  • viewDirection is the direction the camera is looking.
  • power is the exponent of the power function, defining the sharpness of the fresnel.

Use cases:

  • Fresnel: Fresnel, like the name implies, is commonly used to influence the reflectivity of a surface, making it more reflective at an angle.
  • Rim Lighting: Fresnel is also commonly used to achieve cheap rim lighting, especially in stylized character shaders.
  • Effects: Many effects, like holograms, energy shields or similar, use fresnel for alpha or blending colors.
  • Iridescence: Using fresnel to drive a [ramp] is one way to achieve iridesence, useful for soapy/oily water, pearls, etc.

Related