src/fx 15 : random

This commit is contained in:
2025-11-09 22:57:14 +01:00
parent 916c816102
commit 94d1593e8e
4 changed files with 69 additions and 60 deletions
+5 -1
View File
@@ -11,8 +11,12 @@ uniform float iTime;
uniform float iTempo;
uniform float iBeats;
float randTime(float seed, int beats){
return rand(seed + floor(iBeats / beats));
}
float randTime(float seed){
return rand(seed + floor(iBeats / 4));
return randTime(seed, 4);
}
float divider(float x)