winning confetti

This commit is contained in:
Haze Weathers 2025-02-27 03:38:07 -05:00
parent cc177f7beb
commit fd3facb076
3 changed files with 71 additions and 2 deletions

View file

@ -0,0 +1,15 @@
shader_type spatial;
render_mode unshaded, cull_disabled;
uniform float spin_speed = 2.0;
void vertex() {
float angle = TIME * spin_speed;
vec4 q = vec4(sin(angle), 0.0, 0.0, cos(angle));
vec3 temp = cross(q.xyz, VERTEX) + q.w * VERTEX;
VERTEX = VERTEX + 2.0 * cross(q.xyz, temp);
}
void fragment() {
ALBEDO = COLOR.rgb;
}