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>2013-09-17 01:05:42 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2013-09-17 01:05:42 +0400
commit2513886f437d66e2609eac37f75c92d7c0ace648 (patch)
tree801a67049d934c8c2318cb6f1edda87102f1508c /intern/cycles/kernel/closure
parentbf8c078c55965b887ab8b63d5feb1988409af23f (diff)
Fix #36725: mismatch between viewport and render result when no world is linked
to the scene in cycles.
Diffstat (limited to 'intern/cycles/kernel/closure')
-rw-r--r--intern/cycles/kernel/closure/bsdf_hair.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/intern/cycles/kernel/closure/bsdf_hair.h b/intern/cycles/kernel/closure/bsdf_hair.h
index 5791598459c..5a5f0360e5b 100644
--- a/intern/cycles/kernel/closure/bsdf_hair.h
+++ b/intern/cycles/kernel/closure/bsdf_hair.h
@@ -74,7 +74,7 @@ __device float3 bsdf_hair_reflection_eval_reflect(const ShaderClosure *sc, const
float Iz = dot(Tg, I);
float3 locy = normalize(I - Tg * Iz);
- float3 locx = cross(locy, Tg);
+ //float3 locx = cross(locy, Tg);
float theta_r = M_PI_2_F - safe_acosf(Iz);
@@ -130,7 +130,7 @@ __device float3 bsdf_hair_transmission_eval_transmit(const ShaderClosure *sc, co
float roughness2 = sc->data1;
float Iz = dot(Tg, I);
float3 locy = normalize(I - Tg * Iz);
- float3 locx = cross(locy, Tg);
+ //float3 locx = cross(locy, Tg);
float theta_r = M_PI_2_F - safe_acosf(Iz);