diff options
Diffstat (limited to 'intern/cycles/kernel/svm/bsdf_microfacet.h')
-rw-r--r-- | intern/cycles/kernel/svm/bsdf_microfacet.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/intern/cycles/kernel/svm/bsdf_microfacet.h b/intern/cycles/kernel/svm/bsdf_microfacet.h index b6baa1e90d8..a948ba06871 100644 --- a/intern/cycles/kernel/svm/bsdf_microfacet.h +++ b/intern/cycles/kernel/svm/bsdf_microfacet.h @@ -195,8 +195,8 @@ __device int bsdf_microfacet_ggx_sample(const ShaderData *sd, float randu, float // derivatives a bit bigger. In theory this varies with the // roughness but the exact relationship is complex and // requires more ops than are practical. - *domega_in_dx *= 10; - *domega_in_dy *= 10; + *domega_in_dx *= 10.0f; + *domega_in_dy *= 10.0f; #endif } } @@ -246,8 +246,8 @@ __device int bsdf_microfacet_ggx_sample(const ShaderData *sd, float randu, float // derivatives a bit bigger. In theory this varies with the // roughness but the exact relationship is complex and // requires more ops than are practical. - *domega_in_dx *= 10; - *domega_in_dy *= 10; + *domega_in_dx *= 10.0f; + *domega_in_dy *= 10.0f; #endif } } @@ -423,8 +423,8 @@ __device int bsdf_microfacet_beckmann_sample(const ShaderData *sd, float randu, // derivatives a bit bigger. In theory this varies with the // roughness but the exact relationship is complex and // requires more ops than are practical. - *domega_in_dx *= 10; - *domega_in_dy *= 10; + *domega_in_dx *= 10.0f; + *domega_in_dy *= 10.0f; #endif } } @@ -478,8 +478,8 @@ __device int bsdf_microfacet_beckmann_sample(const ShaderData *sd, float randu, // derivatives a bit bigger. In theory this varies with the // roughness but the exact relationship is complex and // requires more ops than are practical. - *domega_in_dx *= 10; - *domega_in_dy *= 10; + *domega_in_dx *= 10.0f; + *domega_in_dy *= 10.0f; #endif } } |