[Bf-blender-cvs] [0d9f4d7] cycles_disney_brdf: Fixed refraction roughness problem (refractions were always 100% rough) and set IOR of clearcoat to 1.5
Pascal Schoen
noreply at git.blender.org
Tue Sep 27 11:22:24 CEST 2016
Commit: 0d9f4d7acb2de65d1c98d425cea4bf364795c155
Author: Pascal Schoen
Date: Fri Aug 26 11:11:05 2016 +0200
Branches: cycles_disney_brdf
https://developer.blender.org/rB0d9f4d7acb2de65d1c98d425cea4bf364795c155
Fixed refraction roughness problem (refractions were always 100% rough)
and set IOR of clearcoat to 1.5
===================================================================
M intern/cycles/kernel/svm/svm_closure.h
===================================================================
diff --git a/intern/cycles/kernel/svm/svm_closure.h b/intern/cycles/kernel/svm/svm_closure.h
index d658ed2..c2d13aa 100644
--- a/intern/cycles/kernel/svm/svm_closure.h
+++ b/intern/cycles/kernel/svm/svm_closure.h
@@ -100,7 +100,7 @@ ccl_device void svm_node_closure_bsdf(KernelGlobals *kg, ShaderData *sd, float *
float clearcoatGloss = stack_load_float(stack, clearcoatGloss_offset);
float transparency = stack_load_float(stack, transparency_offset);
float anisotropic_rotation = stack_load_float(stack, anisotropic_rotation_offset);
- float refraction_roughness = 1.0f; // TODO: add parameter for this!
+ float refraction_roughness = 0.0f; // TODO: add parameter for this!
float eta = fmaxf(stack_load_float(stack, eta_offset), 1e-5f);
/* rotate tangent */
@@ -366,7 +366,7 @@ ccl_device void svm_node_closure_bsdf(KernelGlobals *kg, ShaderData *sd, float *
if (bsdf && extra) {
bsdf->N = CN;
- bsdf->ior = 0.0f;
+ bsdf->ior = 1.5f;
bsdf->extra = extra;
bsdf->alpha_x = 0.1f * (1.0f - clearcoatGloss) + 0.001f * clearcoatGloss;
More information about the Bf-blender-cvs
mailing list