diff options
Diffstat (limited to 'intern/cycles/kernel/closure/bsdf_reflection.h')
-rw-r--r-- | intern/cycles/kernel/closure/bsdf_reflection.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/intern/cycles/kernel/closure/bsdf_reflection.h b/intern/cycles/kernel/closure/bsdf_reflection.h index 5e6c6cdcde6..798bcfaf9e7 100644 --- a/intern/cycles/kernel/closure/bsdf_reflection.h +++ b/intern/cycles/kernel/closure/bsdf_reflection.h @@ -43,10 +43,12 @@ ccl_device int bsdf_reflection_sample(ccl_private const ShaderClosure *sc, float randv, ccl_private Spectrum *eval, ccl_private float3 *omega_in, - ccl_private float *pdf) + ccl_private float *pdf, + ccl_private float *eta) { ccl_private const MicrofacetBsdf *bsdf = (ccl_private const MicrofacetBsdf *)sc; float3 N = bsdf->N; + *eta = bsdf->ior; // only one direction is possible float cosNO = dot(N, I); |