commit 30199ca8ecbf902c68781b8e49a53c6a62717ba8
parent 4519d4c12fb3eca5b53bcd4b5f894de1de483924
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Tue, 10 Mar 2020 16:02:24 +0100
Fix the material fetch in htrdr_interface_create_bsdf
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/htrdr_interface.c b/src/htrdr_interface.c
@@ -129,7 +129,7 @@ htrdr_interface_create_bsdf
if(d3_dot(N, dir) < 0) {
mat = interf->mtl_back;
} else {
- mat = interf->mtl_back;
+ mat = interf->mtl_front;
}
if(!mat) {
htrdr_log_err(htrdr, "%s: the hit surface has no material.\n", FUNC_NAME);