Page MenuHome

Layer weight gives incorrect result in GLSL Material mode
Closed, ResolvedPublic

Description

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).

Event Timeline

Eelco Dolstra (edolstra) raised the priority of this task from to 90.
Eelco Dolstra (edolstra) updated the task description. (Show Details)
Eelco Dolstra (edolstra) edited a custom field.
Bastien Montagne (mont29) lowered the priority of this task from 90 to Normal.Mar 4 2016, 10:24 AM

Thanks! However, it still gives an incorrect result when the layer weight has a Normal Map node as an input, e.g.:


In 2.76 the normal input had no effect in GLSL mode (i.e. the output looked like the first image above).