Skip to main content
Version: 5.x

Nodes > Math > Geometric > Refract

Refract

Returns the I vector refracted through the N normal. The amount of refraction is determined by the IOR (Index Of Refraction) input.

Note: The index of refraction value assumes that it is going from air to the material you want to refract. Air has an index of refraction of 1.0. This means that for the refract node, IOR = 1.0 / [target material's index of refraction]. Water has an index of refraction of 1.333, so if you wanted to create a water material, the IOR for the refract node would be 1.0 / 1.33 = 0.75018

Inputs

NameTypeDescription
IfloatIncident vector to refract
NfloatNormal vector to refract through
IORfloatIndex of refraction

Outputs

NameTypeDescription
refract( I, N, IOF )floatRefracted vector
Was this page helpful?
Yes
No