PirateTreasureHunt/shaders/water.shader

13 lines
267 B
Plaintext
Raw Normal View History

2021-08-09 00:27:53 +02:00
shader_type canvas_item;
uniform vec2 tiled_factor = vec2(5.0, 5.0);
uniform float aspect_ratio = 0.5;
void fragment() {
vec2 tiled_uvs = UV * tiled_factor;
tiled_uvs.y *= aspect_ratio;
COLOR= texture(TEXTURE, tiled_uvs);
// COLOR = vec4(tiled_uvs, 0., 1.);
}