Normal map 2D

Shader code
shader_type canvas_item;
render_mode blend_mix;

uniform sampler2D Normal_map : hint_normal, filter_nearest, repeat_disable;



void fragment() {
	vec4 n_out4p0;
// Texture2D:4
	n_out4p0 = texture(Normal_map, UV);


// Output:0
	NORMAL_MAP = vec3(n_out4p0.xyz);
	NORMAL_MAP_DEPTH = n_out4p0.x;


}
The shader code and all code snippets in this post are under CC0 license and can be used freely without the author's permission. Images and videos, and assets depicted in those, do not fall under this license. For more info, see our License terms.

Related shaders

Tile Map

Deep Map Effect

World Normal Mix Shader

Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments