Files
uarep-ctl/shaders/tilemap.gdshader
2023-11-30 10:24:45 +03:00

15 lines
336 B
Plaintext

shader_type canvas_item;
#include "tools.gdshaderinc"
/* Рисует текстуру по маске в форме окружности */
uniform float radius: hint_range(0.0, 1.0) = 0.8; /* Радиус */
const vec2 center = vec2(0.5, 0.5);
void fragment()
{
COLOR.a *= smooth_px(length(UV - center), radius, DS);
}