commit 5aa6d008e2228d1a01de1b5befbbf899fa6c769c
parent e86ce1f4cd96a51134673f06880c1a606b424354
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Wed, 19 Apr 2017 10:42:01 +0200
Perturbe the normal wrt the shading normal
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/solstice_material.c b/src/solstice_material.c
@@ -57,7 +57,7 @@ perturb_normal
d3_set(basis+0, frag->dPdu);
d3_set(basis+3, frag->dPdv);
- d3_set(basis+6, frag->Ng);
+ d3_set(basis+6, frag->Ns);
d3_normalize(basis + 0, basis + 0);
d3_normalize(basis + 3, basis + 3);