refract(_:n:eta:)
Returns the refraction direction of an incident vector, a unit normal vector, and an index of refraction eta.
Declaration
func refract(_ x: SIMD3<Double>, n: SIMD3<Double>, eta: Double) -> SIMD3<Double>Returns the refraction direction of an incident vector, a unit normal vector, and an index of refraction eta.
func refract(_ x: SIMD3<Double>, n: SIMD3<Double>, eta: Double) -> SIMD3<Double>