light acting strangely

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By trafel
:warning: Old Version Published before Godot 3 was released.

When I set a tilemap containing a tile with a normal map the light starts to act strangely and the light occluder gets ignored. Is it possible to properly set tiles with normal maps in Godot?

Before

After

EDIT :

I forgot to mension that I took the fragment script from the normalmap demo

uniform texture normal;
//normal maps expect Y-up, but 2D is Y-down, so must mirror this.
NORMAL = tex(normal,UV).rgb * vec3(2.0,-1.0,1.0) - vec3(1.0,-1.0,0.0);