Eevee: Render: Fix emission shader normal output
This commit is contained in:
parent
217bc17a3c
commit
269d9eb54c
|
@ -3005,7 +3005,7 @@ void node_ambient_occlusion(vec4 color, out Closure result)
|
|||
|
||||
/* emission */
|
||||
|
||||
void node_emission(vec4 color, float strength, vec3 N, out Closure result)
|
||||
void node_emission(vec4 color, float strength, vec3 vN, out Closure result)
|
||||
{
|
||||
#ifndef VOLUMETRICS
|
||||
color *= strength;
|
||||
|
@ -3013,7 +3013,6 @@ void node_emission(vec4 color, float strength, vec3 N, out Closure result)
|
|||
result = CLOSURE_DEFAULT;
|
||||
result.radiance = color.rgb;
|
||||
result.opacity = color.a;
|
||||
vec3 vN = normalize(mat3(ViewMatrix) * N);
|
||||
result.ssr_normal = normal_encode(vN, viewCameraVec);
|
||||
#else
|
||||
result = Closure(color.rgb, color.a);
|
||||
|
|
Loading…
Reference in New Issue