Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2012-10-18 03:09:12 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2012-10-18 03:09:12 +0400
commit9d260eedeb83776416981e2f3a8af9bb5605e1d2 (patch)
treeb0bff5e62f273ec1f7674027d70bdaf090a990fb /intern/cycles/kernel/svm/bsdf_ward.h
parentb2142d6533d740b00ac1578de67f4a8d8dc94121 (diff)
Fix #32904: strange pattern on subdivided cube with anistropic shader. Now
tangents from generated coordinates are computed per pixel on the fly, avoids bad interpolation of singularities.
Diffstat (limited to 'intern/cycles/kernel/svm/bsdf_ward.h')
-rw-r--r--intern/cycles/kernel/svm/bsdf_ward.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/intern/cycles/kernel/svm/bsdf_ward.h b/intern/cycles/kernel/svm/bsdf_ward.h
index 1407078b7bb..d167566bb75 100644
--- a/intern/cycles/kernel/svm/bsdf_ward.h
+++ b/intern/cycles/kernel/svm/bsdf_ward.h
@@ -39,8 +39,8 @@ CCL_NAMESPACE_BEGIN
__device void bsdf_ward_setup(ShaderData *sd, ShaderClosure *sc, float ax, float ay)
{
- float m_ax = clamp(ax, 1e-5f, 1.0f);
- float m_ay = clamp(ay, 1e-5f, 1.0f);
+ float m_ax = clamp(ax, 1e-4f, 1.0f);
+ float m_ay = clamp(ay, 1e-4f, 1.0f);
sc->data0 = m_ax;
sc->data1 = m_ay;