+1 vote

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

enter image description here

After

enter image description here

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);
in Engine by (121 points)
edited by

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.