|
|
@ -186,6 +186,6 @@ namespace detail |
|
|
|
|
|
|
|
|
|
|
|
T const dotValue(dot(N, I)); |
|
|
|
T const dotValue(dot(N, I)); |
|
|
|
T const k(static_cast<T>(1) - eta * eta * (static_cast<T>(1) - dotValue * dotValue)); |
|
|
|
T const k(static_cast<T>(1) - eta * eta * (static_cast<T>(1) - dotValue * dotValue)); |
|
|
|
return (eta * I - (eta * dotValue + std::sqrt(k)) * N) * static_cast<genType>(k >= static_cast<genType>(0)); |
|
|
|
return (eta * I - (eta * dotValue + std::sqrt(k)) * N) * static_cast<T>(k >= static_cast<T>(0)); |
|
|
|
} |
|
|
|
} |
|
|
|
}//namespace glm |
|
|
|
}//namespace glm |
|
|
|