Fix T64214 Eevee: Issue with Emission node and Alpha blending
Emission node was outputing alpha information but is was not supposed to. Match cycles reference.
This commit is contained in:
@@ -1797,14 +1797,12 @@ void node_wireframe_screenspace(float size, vec2 barycentric, out float fac)
|
|||||||
|
|
||||||
void node_emission(vec4 color, float strength, vec3 vN, out Closure result)
|
void node_emission(vec4 color, float strength, vec3 vN, out Closure result)
|
||||||
{
|
{
|
||||||
#ifndef VOLUMETRICS
|
|
||||||
color *= strength;
|
|
||||||
result = CLOSURE_DEFAULT;
|
result = CLOSURE_DEFAULT;
|
||||||
result.radiance = color.rgb;
|
#ifndef VOLUMETRICS
|
||||||
result.opacity = color.a;
|
result.radiance = color.rgb * strength;
|
||||||
result.ssr_normal = normal_encode(vN, viewCameraVec);
|
result.ssr_normal = normal_encode(vN, viewCameraVec);
|
||||||
#else
|
#else
|
||||||
result = Closure(vec3(0.0), vec3(0.0), color.rgb * strength, 0.0);
|
result.emission = color.rgb * strength;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user