В процессе. Карта отображается. Ошибка: накапливаются запросы на получение карты.

This commit is contained in:
sasha80
2023-11-13 10:21:17 +03:00
parent c067e36e6f
commit 892cfabfda
11 changed files with 213 additions and 121 deletions

View File

@@ -4,11 +4,11 @@ shader_type canvas_item;
/* Рисует текстуру по маске в форме окружности */
uniform float radius: hint_range(0.0, 1.0) = 0.4; /* Радиус */
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) * smooth_px(length(UV - center), radius, DS);
COLOR = texture(TEXTURE, UV);// * smooth_px(length(UV - center), radius, DS);
}