diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2012-12-12 18:43:07 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2012-12-12 18:43:07 +0400 |
commit | 5616c7a0585521ca16f352ce2277cf4ac73eced2 (patch) | |
tree | c3d748185fa49441c39e01ed92365ab6c2ca949a /intern/cycles/kernel/closure/bsdf_phong_ramp.h | |
parent | 96cad133f75b22a3ac8045fefe18239bef5a4bf9 (diff) |
Cycles: disable scaling up of ray differentials after diffuse/glossy bounce, this
isn't working well for OSL texture filtering and wasn't very helpful to begin
with, a better solution should be possible.
Diffstat (limited to 'intern/cycles/kernel/closure/bsdf_phong_ramp.h')
-rw-r--r-- | intern/cycles/kernel/closure/bsdf_phong_ramp.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/intern/cycles/kernel/closure/bsdf_phong_ramp.h b/intern/cycles/kernel/closure/bsdf_phong_ramp.h index 575a798aed4..2f57fc1693f 100644 --- a/intern/cycles/kernel/closure/bsdf_phong_ramp.h +++ b/intern/cycles/kernel/closure/bsdf_phong_ramp.h @@ -119,15 +119,6 @@ __device int bsdf_phong_ramp_sample(const ShaderClosure *sc, const float3 colors *pdf = (m_exponent + 1) * common; float out = cosNI * (m_exponent + 2) * common; *eval = bsdf_phong_ramp_get_color(sc, colors, cosp) * out; - -#ifdef __RAY_DIFFERENTIALS__ - // Since there is some blur to this reflection, make the - // derivatives a bit bigger. In theory this varies with the - // exponent but the exact relationship is complex and - // requires more ops than are practical. - *domega_in_dx *= 10; - *domega_in_dy *= 10; -#endif } } } |