Blender Git Commit Log

Git Commits -> Revision c376878

Revision c376878 by Alexander Gavrilov (master)
August 30, 2016, 09:48 (GMT)
Fix T49187: inconsistent Normal Map node output for backfacing polygons.

There basically are two issues here: in smooth mode (and all non-tangent
normal map types) it doesn't invert the normal for backfacing polys;
on the other hand for flat shaded tangent type it is inverted too soon.

This fix does a brute force correction by checking the backfacing flag.

Reviewers: #cycles, brecht

Reviewed By: #cycles, brecht

Differential Revision: https://developer.blender.org/D2181

Commit Details:

Full Hash: c376878e5421f4b53ef812f77ab9127effea4505
Parent Commit: 3a0c0c1
Lines Changed: +26, -2

2 Modified Paths:

/intern/cycles/kernel/shaders/node_normal_map.osl (+14, -2) (Diff)
/intern/cycles/kernel/svm/svm_tex_coord.h (+12, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021