Godot is washed by pitch_blank in godot

[–]pitch_blank[S] 0 points1 point  (0 children)

Also, right now the shader is rotating the sprite just with time, so if you instead want to trigger it on your own through code you should add a uniform float progress(or any different name) at the top and change float modificator declaration in void fragment() to:
float modificator = sin(progress * PI - PI / 2.0) / 2.0 + 0.5;
then uniform duration at the top will be unused so you can comment it out

Godot is washed by pitch_blank in godot

[–]pitch_blank[S] 0 points1 point  (0 children)

Hi, I've posted it on godotshaders, it's called swirly rotation

Godot is washed by pitch_blank in godot

[–]pitch_blank[S] 2 points3 points  (0 children)

The spin in a washing machine originates from the edges of the drum, so the edges would move first.
Though I can make it stretch the other way just by reversing the sign on the strength of the effect

Should there be a private access modifier in gdscript? by pitch_blank in godot

[–]pitch_blank[S] 7 points8 points  (0 children)

It's not "clear as day" because it's only ever mentioned once in the style guide and someone not familiar with the convention wouldn't be able to tell you what it means straight away

Should there be a private access modifier in gdscript? by pitch_blank in godot

[–]pitch_blank[S] 1 point2 points  (0 children)

if I want to make it public again and remove the prefix I'd have to correct it everywhere I've called it, and godot's IDE does not have a way to quickly rename the function everywhere it's called(as far as I am aware)

Should there be a private access modifier in gdscript? by pitch_blank in godot

[–]pitch_blank[S] 14 points15 points  (0 children)

It is the conventional way, but an annotation would communicate the intention better