Vector3:refract

From Wake
Jump to: navigation, search

Calculate the refraction vector.

Function

Synopsis

result = Vector3:refract(i, n, eta)

Arguments

Vector3 i

Normalized incident vector.


Vector3 n

Surface normal.


Vector3 eta

Ratio of indices of refraction.

Returns

number result

Refraction vector.

See Also