shovel fully done

This commit is contained in:
Rendo 2025-07-23 18:08:29 +05:00
commit 2639322dbf
12 changed files with 107 additions and 14 deletions

View file

@ -2,6 +2,7 @@ shader_type canvas_item;
render_mode unshaded;
uniform vec4 FLASH_COLOR : source_color = vec4(1,0.709803921,0.43921568,0.5);
uniform vec4 HIGHLIGHT_COLOR : source_color = vec4(1,0.709803921,0.43921568,0.5);
uniform sampler2D screen_texture : hint_screen_texture, repeat_disable, filter_nearest;
uniform float blend : hint_range(0,1,0.01);
uniform bool selected = false;
@ -15,7 +16,7 @@ void fragment() {
if (selected)
{
COLOR = vec4(mix(text.rgb,FLASH_COLOR.rgb,FLASH_COLOR.a),text.a);
COLOR = vec4(mix(text.rgb,HIGHLIGHT_COLOR.rgb,HIGHLIGHT_COLOR.a),text.a);
}
else
{

View file

@ -1,6 +1,7 @@
shader_type canvas_item;
uniform vec4 FLASH_COLOR : source_color = vec4(1,0.709803921,0.43921568,0.5);
uniform vec4 HIGHLIGHT_COLOR : source_color = vec4(1,0.709803921,0.43921568,0.5);
uniform bool selected = false;
uniform float blend : hint_range(0.0, 1.0, 0.01);
@ -9,7 +10,7 @@ void fragment() {
if (selected)
{
COLOR = vec4(mix(text.rgb,FLASH_COLOR.rgb,FLASH_COLOR.a),text.a);
COLOR = vec4(mix(text.rgb,HIGHLIGHT_COLOR.rgb,HIGHLIGHT_COLOR.a),text.a);
}
else
{

View file

@ -1,7 +1,20 @@
shader_type canvas_item;
uniform vec4 region_rect;
uniform float progress;
void fragment() {
//vec4 text = texture(TEXTURE,UV);
vec3 argg = vec3(distance(vec2(0.5),UV));
COLOR = vec4(argg,1);
if (progress > 0.9999)
{
vec4 text = texture(TEXTURE,UV);
COLOR = text;
}
vec2 c = vec2(0.5)-UV;
float d = atan(c.x,c.y)+PI;
if (d > progress*TAU)
{
discard;
}
vec4 text = texture(TEXTURE,UV);
COLOR = text;
}