diff options
Diffstat (limited to 'game/src/GameSession/TerrainMap.gdshader')
-rw-r--r-- | game/src/GameSession/TerrainMap.gdshader | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/game/src/GameSession/TerrainMap.gdshader b/game/src/GameSession/TerrainMap.gdshader new file mode 100644 index 0000000..522e0f3 --- /dev/null +++ b/game/src/GameSession/TerrainMap.gdshader @@ -0,0 +1,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; +} |