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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user