Vector4:refract

From Wake
Jump to: navigation, search

Calculate the refraction vector.

Function

Synopsis

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

Arguments

Vector4 i

Normalized incident vector.


Vector4 n

Surface normal.


Vector4 eta

Ratio of indices of refraction.

Returns

number result

Refraction vector.

See Also