EEVEE: Fix unreported broken normal map node modes

A compilation error was making it impossible to use normal map modes other
than tangent.
This commit is contained in:
2022-05-23 17:13:57 +02:00
parent 16fd5fa656
commit e4de0d28c4

View File

@@ -1,3 +1,5 @@
#ifdef OBINFO_LIB
void node_normal_map(vec4 tangent, vec3 texnormal, out vec3 outnormal)
{
if (all(equal(tangent, vec4(0.0, 0.0, 0.0, 1.0)))) {
@@ -10,6 +12,7 @@ void node_normal_map(vec4 tangent, vec3 texnormal, out vec3 outnormal)
outnormal = texnormal.x * tangent.xyz + texnormal.y * B + texnormal.z * g_data.N;
outnormal = normalize(outnormal);
}
#endif
void color_to_normal_new_shading(vec3 color, out vec3 normal)
{