weird normal map

Subscribers:
111
Published on ● Video Link: https://www.youtube.com/watch?v=J2-jXHsTvI4



Duration: 0:24
597 views
3


anyone noticed a weird normal map behavior when set by shader material?
here two copy of the same model sharing the same normal map with the only exception of how it is assigned to them. There is a directional light, set to 45 degree, who is lighting the scene.
Normal map on the left model is set by using built-in fixed material while the normal map on the right model is set by using a shader material like this:
uniform texture normal_map;
NORMALMAP = tex(normal_map, UV).xyz;
NORMALMAP_DEPTH = 1;

as you can notice the model with fixed material looks natural while it is revolving while the model with shader material shows a weird shading artifact, a bit like if the light was moving vertically.




Other Videos By FFX Runner 2 Undead Rods


2016-10-17godot car bug
2016-05-26FFX Runner Undead Rods (prototype)
2016-03-18FFX Runner2 wip 18/03/2016
2016-02-19FFX Runner HD
2016-02-12FFX Runner HD
2016-01-16sgrafegn
2015-12-16Animating the Disk
2015-12-15Rigging the Disk
2015-12-10foreshore improvement
2015-12-09Terrain Shader
2015-12-04weird normal map
2015-12-02Caustics with shaders inside Godot
2015-11-26Enemies Path
2015-11-16bake_low_poly
2015-11-09betterCamera



Tags:
godot engine