aboutsummaryrefslogtreecommitdiff
path: root/game/src/GameSession/TerrainMap.gdshader
blob: 522e0f37563e7e315c6de8fb16b3986994401061 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
shader_type spatial;

render_mode unshaded;

uniform sampler2D tex: source_color, repeat_enable;

void fragment() {
   vec2 new_uv = vec2(UV.x * 2.0 - 0.5, UV.y);
   ALBEDO = texture(tex, new_uv).rgb;
}