Lines Matching refs:eta
1475 void ShaderCore::refract1(Vector4f &dst, const Vector4f &I, const Vector4f &N, const Float4 &eta) in refract1() argument
1478 Float4 k = Float4(1.0f) - eta * eta * (Float4(1.0f) - d * d); in refract1()
1480 Float4 t = (eta * d + Sqrt(k)); in refract1()
1482 dst.x = As<Float4>(pos & As<Int4>(eta * I.x - t * N.x)); in refract1()
1485 void ShaderCore::refract2(Vector4f &dst, const Vector4f &I, const Vector4f &N, const Float4 &eta) in refract2() argument
1488 Float4 k = Float4(1.0f) - eta * eta * (Float4(1.0f) - d * d); in refract2()
1490 Float4 t = (eta * d + Sqrt(k)); in refract2()
1492 dst.x = As<Float4>(pos & As<Int4>(eta * I.x - t * N.x)); in refract2()
1493 dst.y = As<Float4>(pos & As<Int4>(eta * I.y - t * N.y)); in refract2()
1496 void ShaderCore::refract3(Vector4f &dst, const Vector4f &I, const Vector4f &N, const Float4 &eta) in refract3() argument
1499 Float4 k = Float4(1.0f) - eta * eta * (Float4(1.0f) - d * d); in refract3()
1501 Float4 t = (eta * d + Sqrt(k)); in refract3()
1503 dst.x = As<Float4>(pos & As<Int4>(eta * I.x - t * N.x)); in refract3()
1504 dst.y = As<Float4>(pos & As<Int4>(eta * I.y - t * N.y)); in refract3()
1505 dst.z = As<Float4>(pos & As<Int4>(eta * I.z - t * N.z)); in refract3()
1508 void ShaderCore::refract4(Vector4f &dst, const Vector4f &I, const Vector4f &N, const Float4 &eta) in refract4() argument
1511 Float4 k = Float4(1.0f) - eta * eta * (Float4(1.0f) - d * d); in refract4()
1513 Float4 t = (eta * d + Sqrt(k)); in refract4()
1515 dst.x = As<Float4>(pos & As<Int4>(eta * I.x - t * N.x)); in refract4()
1516 dst.y = As<Float4>(pos & As<Int4>(eta * I.y - t * N.y)); in refract4()
1517 dst.z = As<Float4>(pos & As<Int4>(eta * I.z - t * N.z)); in refract4()
1518 dst.w = As<Float4>(pos & As<Int4>(eta * I.w - t * N.w)); in refract4()