User Tools

Site Tools


Fresnel

Brickyard : Functions > Lighting > ray tracing

The Fresnel Effect describes objects that are more or less transparent based on the viewing angle. The Fresnel brick uses the Index of Refraction Ratio to calculate this. This procedure also returns the reflection (R) and transmission (T), or refraction, vectors. The refraction vector is computed using Snell's law. See also, Fresnel equations.

Optionally, an incident direction I and the surface normal N may be supplied.

Snapshot

Parameters

Outputs

  • Coefficient of Reflection : Float - Description…
  • Coefficient of Refraction : Float - Description…
  • Reflected Vector : Vector - Description…
  • Refracted Vector : Vector - Description…

Inputs

  • I1) : Point - Description…
  • Nf2) : Normal - Description…
  • Index of Refraction Ratio : Float - Description…

Examples

  • In this example, the Coefficient of Reflection is used as the Color, and the Coefficient of Refraction is inverted and used as Opacity.
1) , 2)
Available when Show Advanced is checked in the Brick Option Menu.