Skip to content

Instantly share code, notes, and snippets.

View Qrt42's full-sized avatar
☺️
I may be slow to respond.

Qrt42

☺️
I may be slow to respond.
  • Germany
  • 22:21 (UTC +02:00)
View GitHub Profile
@Qrt42
Qrt42 / control.gd
Created July 13, 2024 12:49
Implementation of a progress bar that runs around a square control. This is the square special case for rectangular cases you have to rewrite the progress bar to edge length calculation. Tested in 4.2.2
@tool
extends Control
@export var value: float = 0.0:
set(new_value):
value = clampf(new_value, min_value, max_value)
_refresh_line()
@Qrt42
Qrt42 / GLSL-Noise.md
Created September 30, 2020 05:26 — forked from patriciogonzalezvivo/GLSL-Noise.md
GLSL Noise Algorithms

Generic 1,2,3 Noise

float rand(float n){return fract(sin(n) * 43758.5453123);}

float noise(float p){
	float fl = floor(p);
  float fc = fract(p);
	return mix(rand(fl), rand(fl + 1.0), fc);
}