aboutsummaryrefslogtreecommitdiff
path: root/game/addons/zylann.hterrain/tools/brush/no_blend_rf.gdshader
blob: d0460ded7e18488f2338c1d8c0d4190632c24f2e (plain) (blame)
1
2
3
4
5
6
7
8
9
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);
}