mirror of
https://github.com/Steffo99/pineapple-surf.git
synced 2024-11-28 18:54:19 +00:00
15 lines
324 B
Text
15 lines
324 B
Text
|
shader_type spatial;
|
||
|
|
||
|
uniform float speed_x;
|
||
|
uniform float speed_y;
|
||
|
uniform float size;
|
||
|
uniform sampler2D sea;
|
||
|
|
||
|
void fragment() {
|
||
|
float x = fract(UV.x * size + sin(TIME) * speed_x);
|
||
|
float y = fract(UV.y * size - TIME * 2.0 * speed_y);
|
||
|
|
||
|
vec4 color = texture(sea, vec2(x, y));
|
||
|
ALBEDO = vec3(color.r, color.g, color.b);
|
||
|
}
|