16 lines
372 B
Plaintext
16 lines
372 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 = texture(TEXTURE, UV);
|
|
//COLOR.a *= smooth_px(length(UV - center), radius, DS);
|
|
}
|
|
|