Рефактор.

This commit is contained in:
sasha80
2024-01-23 14:30:13 +03:00
parent 280bf1ddd3
commit 68e5b55f51
10 changed files with 85 additions and 86 deletions

View File

@@ -1,4 +1,7 @@
shader_type canvas_item;
#include "res://shaders/tools.gdshaderinc"
uniform vec4 ColorFig:source_color;
uniform vec2 point_1;
uniform vec2 point_2;
@@ -14,10 +17,6 @@ const float DSS = 0.002525;
const float radius = 0.125;
uniform float speed: hint_range(0.0, 1024.0) = 0.0;
float smooth_px(float r, float R, float dss)
{
return 1.0 - smoothstep(R - dss, R + dss, r);
}
float line(vec2 p1, vec2 p2, float width, vec2 uv)
{