14 lines
271 B
Plaintext
14 lines
271 B
Plaintext
shader_type canvas_item;
|
|
|
|
#include "tools.gdshaderinc"
|
|
|
|
uniform vec2 center = vec2(0.5, 0.5);
|
|
uniform float radius: hint_range(0.0, 1.0) = 0.4; /* Радиус */
|
|
|
|
|
|
void fragment()
|
|
{
|
|
COLOR = texture(TEXTURE, UV) * smooth_px(length(UV - center), radius, DS);
|
|
}
|
|
|