System Information
NixOS Linux, kernel 3.18.26
GeForce GTX 970, driver 352.63
Blender Version
Broken: 2.77-rc1
Worked: 2.76b
Short description of error
Cycles layer weight node shows an incorrect result in Material mode in the viewport.
In 2.76, the attached file shows as follows:
While in 2.77-rc1 I get this:
Exact steps for others to reproduce the error
See attached blend file in Material mode in the viewport.
A workaround is to connect the Normal input of the Layer weight node to the Normal output of a Geometry node. However, connecting to a image texture normal map gives wrong results.
Note: reverting commit 72dd1ba3fe67206680ef3540b681d944e8bb4872 ("Fix T47349: incorrect Cycles fresnel and layer weight with GLSL materials") fixes the problem for me. However, that does break the workaround described above (i.e. where the Normal output of the Geometry node is used).


