diff options
author | Thomas Dinges <blender@dingto.org> | 2014-07-06 15:07:16 +0400 |
---|---|---|
committer | Thomas Dinges <blender@dingto.org> | 2014-07-06 15:07:35 +0400 |
commit | e929dc2d8cb058f745d5dfa46ef34b69bd35f86f (patch) | |
tree | 611b8caeb124bbe9d492eaf2e8c3e6072002a6af /intern/cycles/kernel/closure/bsdf_microfacet.h | |
parent | 7f4cb0237b076e89801603a1cef25ec87f5be673 (diff) |
Fix part of T40964: Glass shader was giving wrong results with OSL.
Diffstat (limited to 'intern/cycles/kernel/closure/bsdf_microfacet.h')
-rw-r--r-- | intern/cycles/kernel/closure/bsdf_microfacet.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/intern/cycles/kernel/closure/bsdf_microfacet.h b/intern/cycles/kernel/closure/bsdf_microfacet.h index e130349bca2..df0644becee 100644 --- a/intern/cycles/kernel/closure/bsdf_microfacet.h +++ b/intern/cycles/kernel/closure/bsdf_microfacet.h @@ -387,7 +387,7 @@ ccl_device int bsdf_microfacet_ggx_aniso_setup(ShaderClosure *sc) ccl_device int bsdf_microfacet_ggx_refraction_setup(ShaderClosure *sc) { sc->data0 = clamp(sc->data0, 0.0f, 1.0f); /* alpha_x */ - sc->data1 = sc->data1; /* alpha_y */ + sc->data1 = sc->data0; /* alpha_y */ sc->type = CLOSURE_BSDF_MICROFACET_GGX_REFRACTION_ID; @@ -734,7 +734,7 @@ ccl_device int bsdf_microfacet_beckmann_aniso_setup(ShaderClosure *sc) ccl_device int bsdf_microfacet_beckmann_refraction_setup(ShaderClosure *sc) { sc->data0 = clamp(sc->data0, 0.0f, 1.0f); /* alpha_x */ - sc->data1 = sc->data1; /* alpha_y */ + sc->data1 = sc->data0; /* alpha_y */ sc->type = CLOSURE_BSDF_MICROFACET_BECKMANN_REFRACTION_ID; return SD_BSDF|SD_BSDF_HAS_EVAL|SD_BSDF_GLOSSY; |