ile-de-test/addons/zylann.hterrain/tools/brush/no_blend_rf.gdshader

10 lines
234 B
Text
Raw Permalink Normal View History

2023-10-05 18:02:23 +00:00
shader_type canvas_item;
render_mode blend_disabled;
#include "res://addons/zylann.hterrain/shaders/include/heightmap.gdshaderinc"
void fragment() {
float h = sample_heightmap(TEXTURE, UV);
COLOR = encode_height_to_viewport(h);
}