shovel fully done
This commit is contained in:
parent
797fbfb4fe
commit
2639322dbf
12 changed files with 107 additions and 14 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue