mirror of
https://github.com/Relintai/pandemonium_demo_projects.git
synced 2024-12-21 13:56:50 +01:00
18 lines
315 B
GLSL
18 lines
315 B
GLSL
shader_type canvas_item;
|
|
|
|
render_mode blend_mix;
|
|
uniform float fattyness = 2.0;
|
|
|
|
void fragment() {
|
|
vec2 ruv = UV - vec2(0.5, 0.5);
|
|
vec2 dir = normalize(ruv);
|
|
float len = length(ruv);
|
|
|
|
len = pow(len * 2.0, fattyness) * 0.5;
|
|
ruv = len * dir;
|
|
|
|
vec4 col = texture(TEXTURE, ruv + vec2(0.5, 0.5));
|
|
|
|
COLOR = col;
|
|
}
|