Lines Matching refs:eta
1489 void ShaderCore::refract1(Vector4f &dst, const Vector4f &I, const Vector4f &N, const Float4 &eta) in refract1() argument
1492 Float4 k = Float4(1.0f) - eta * eta * (Float4(1.0f) - d * d); in refract1()
1494 Float4 t = (eta * d + Sqrt(k)); in refract1()
1496 dst.x = As<Float4>(pos & As<Int4>(eta * I.x - t * N.x)); in refract1()
1499 void ShaderCore::refract2(Vector4f &dst, const Vector4f &I, const Vector4f &N, const Float4 &eta) in refract2() argument
1502 Float4 k = Float4(1.0f) - eta * eta * (Float4(1.0f) - d * d); in refract2()
1504 Float4 t = (eta * d + Sqrt(k)); in refract2()
1506 dst.x = As<Float4>(pos & As<Int4>(eta * I.x - t * N.x)); in refract2()
1507 dst.y = As<Float4>(pos & As<Int4>(eta * I.y - t * N.y)); in refract2()
1510 void ShaderCore::refract3(Vector4f &dst, const Vector4f &I, const Vector4f &N, const Float4 &eta) in refract3() argument
1513 Float4 k = Float4(1.0f) - eta * eta * (Float4(1.0f) - d * d); in refract3()
1515 Float4 t = (eta * d + Sqrt(k)); in refract3()
1517 dst.x = As<Float4>(pos & As<Int4>(eta * I.x - t * N.x)); in refract3()
1518 dst.y = As<Float4>(pos & As<Int4>(eta * I.y - t * N.y)); in refract3()
1519 dst.z = As<Float4>(pos & As<Int4>(eta * I.z - t * N.z)); in refract3()
1522 void ShaderCore::refract4(Vector4f &dst, const Vector4f &I, const Vector4f &N, const Float4 &eta) in refract4() argument
1525 Float4 k = Float4(1.0f) - eta * eta * (Float4(1.0f) - d * d); in refract4()
1527 Float4 t = (eta * d + Sqrt(k)); in refract4()
1529 dst.x = As<Float4>(pos & As<Int4>(eta * I.x - t * N.x)); in refract4()
1530 dst.y = As<Float4>(pos & As<Int4>(eta * I.y - t * N.y)); in refract4()
1531 dst.z = As<Float4>(pos & As<Int4>(eta * I.z - t * N.z)); in refract4()
1532 dst.w = As<Float4>(pos & As<Int4>(eta * I.w - t * N.w)); in refract4()