Skip to content

Instantly share code, notes, and snippets.

View arceryz's full-sized avatar

Timothy van der Valk arceryz

View GitHub Profile
@arceryz
arceryz / loading_circle.gd
Created June 1, 2024 20:41
Godot Loading Circle Shader
shader_type canvas_item;
uniform vec3 rings[5]; // X=innerRadius, Y=outerRadius, Z=speed
uniform float timeScale = 1.0f;
uniform float blur = 1.0f;
void fragment() {
vec2 p = 2.0*UV.xy - vec2(1.0);
float radius = length(p);
float angle = (atan(p.y, p.x)+PI) / (2.0*PI);
@arceryz
arceryz / tesseract.gd
Last active May 24, 2024 23:43
Godot Dancing Tesseract (100 Lines) (MIT)
extends RigidBody3D
@export var line_radius = 0.5
@export var point_radius = 0.1
@export var speed = 2
var vertices: Array[Vector4]
var points: Array[MeshInstance3D]
var lines: Array[MeshInstance3D]
var pointShapes: Array[CollisionShape3D]