Fix T63729 Eevee: Bump does not follow normal direction

This commit is contained in:
Clément Foucault 2019-06-06 19:32:43 +02:00
parent 6c5ef42549
commit 76634a23bb
Notes: blender-bot 2023-06-26 11:58:59 +02:00
Referenced by issue #63729, Bump in Eevee does not follow normal direction
1 changed files with 1 additions and 1 deletions

View File

@ -3376,7 +3376,7 @@ void node_bump(
float strength, float dist, float height, vec3 N, vec3 surf_pos, float invert, out vec3 result)
{
N = mat3(ViewMatrix) * normalize(N);
dist *= invert;
dist *= gl_FrontFacing ? invert : -invert;
vec3 dPdx = dFdx(surf_pos);
vec3 dPdy = dFdy(surf_pos);