Fix T64158 Eevee: Mixed SSS shader becomes brighter and brighter
authorClément Foucault <foucault.clem@gmail.com>
Wed, 8 May 2019 22:10:15 +0000 (00:10 +0200)
committerClément Foucault <foucault.clem@gmail.com>
Wed, 8 May 2019 22:10:29 +0000 (00:10 +0200)
commit1a99b6fc7e8e2d670bc5ceed23ecc84020a10555
tree91ad7c9b238dc1400317ef2c29e372339174d7f6
parent558017d6a644282cad31441867c4d96f8cb76eb4
Fix T64158 Eevee: Mixed SSS shader becomes brighter and brighter

This change the logic a bit, when 2 bsdfs using SSS are mixed, we use the
one with the biggest radius (on a per pixel basis).

This change from previous behavior which was to select input 1 if radius
was greater than 0.
source/blender/draw/engines/eevee/shaders/bsdf_common_lib.glsl