+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?


enter image description here


enter image description here


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);
asked Jul 1, 2016 in Engine by trafel (110 points)
edited Jul 1, 2016 by trafel

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 How to use this Q&A? before posting your first questions.