diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2011-11-15 22:01:52 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2011-11-15 22:01:52 +0400 |
commit | e78cad55403a7990db4ba17956bb8d64e0bd878f (patch) | |
tree | f0e4fb567b8fdfbb4e55144df1e1eeff9ced63b1 | |
parent | 0c7a25cd0ec8e1aaa853de6f5ec67e030917e15a (diff) |
Fix build issue on windows, M_PI => M_PI_F.
-rw-r--r-- | intern/cycles/kernel/svm/bsdf_oren_nayar.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/intern/cycles/kernel/svm/bsdf_oren_nayar.h b/intern/cycles/kernel/svm/bsdf_oren_nayar.h index 9eefdffe6ae..11dc07e485c 100644 --- a/intern/cycles/kernel/svm/bsdf_oren_nayar.h +++ b/intern/cycles/kernel/svm/bsdf_oren_nayar.h @@ -84,8 +84,8 @@ __device void bsdf_oren_nayar_setup(ShaderData *sd, ShaderClosure *sc, float sig sigma = clamp(sigma, 0.0f, 1.0f); - sc->data0 = 1.0f / ((1.0f + 0.5f * sigma) * M_PI); - sc->data1 = sigma / ((1.0f + 0.5f * sigma) * M_PI); + sc->data0 = 1.0f / ((1.0f + 0.5f * sigma) * M_PI_F); + sc->data1 = sigma / ((1.0f + 0.5f * sigma) * M_PI_F); } __device void bsdf_oren_nayar_blur(ShaderClosure *sc, float roughness) |