Nodes > Inputs > Computed > Refraction Vector
Returns the view vector refracted through the surface. 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
Name | Type | Description |
---|---|---|
IOR | float | Index of Refraction - higher value results in more refraction |
Outputs
Name | Type | Description |
---|---|---|
Vector ( World Space ) | float | Refracted world space vector |
Was this page helpful?