From b12151eceb76cab4a49f9df661ce6156bbeaaa21 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Sun, 8 Jun 2014 12:46:12 +0200 Subject: Cycles: glossy and anisotropic BSDF changes * Anisotropic BSDF now supports GGX and Beckmann distributions, Ward has been removed because other distributions are superior. * GGX is now the default distribution for all glossy and anisotropic nodes, since it looks good, has low noise and is fast to evaluate. * Ashikhmin-Shirley is now available in the Glossy BSDF. --- intern/cycles/kernel/closure/bsdf_microfacet.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'intern/cycles/kernel/closure/bsdf_microfacet.h') diff --git a/intern/cycles/kernel/closure/bsdf_microfacet.h b/intern/cycles/kernel/closure/bsdf_microfacet.h index b9b682c650f..4a3d223d765 100644 --- a/intern/cycles/kernel/closure/bsdf_microfacet.h +++ b/intern/cycles/kernel/closure/bsdf_microfacet.h @@ -365,7 +365,7 @@ ccl_device int bsdf_microfacet_ggx_aniso_setup(ShaderClosure *sc) sc->data0 = clamp(sc->data0, 0.0f, 1.0f); /* alpha_x */ sc->data1 = clamp(sc->data1, 0.0f, 1.0f); /* alpha_y */ - sc->type = CLOSURE_BSDF_MICROFACET_GGX_ID; + sc->type = CLOSURE_BSDF_MICROFACET_GGX_ANISO_ID; return SD_BSDF|SD_BSDF_HAS_EVAL|SD_BSDF_GLOSSY; } @@ -713,7 +713,7 @@ ccl_device int bsdf_microfacet_beckmann_aniso_setup(ShaderClosure *sc) sc->data0 = clamp(sc->data0, 0.0f, 1.0f); /* alpha_x */ sc->data1 = clamp(sc->data1, 0.0f, 1.0f); /* alpha_y */ - sc->type = CLOSURE_BSDF_MICROFACET_BECKMANN_ID; + sc->type = CLOSURE_BSDF_MICROFACET_BECKMANN_ANISO_ID; return SD_BSDF|SD_BSDF_HAS_EVAL|SD_BSDF_GLOSSY; } -- cgit v1.2.3