Merge branch 'main' of yibble.dev:bulmanator/ld58

This commit is contained in:
2025-10-06 00:57:13 +01:00
14 changed files with 156 additions and 29 deletions

View File

@@ -222,3 +222,12 @@ F32 Random_Bilateral(Random *rnd) {
F32 result = -1.0f + (2.0f * Random_Unilateral(rnd));
return result;
}
V2f V2f_Clip(V2f screen_xy, V2f screen_size) {
V2f result;
result.x = ((screen_xy.x / screen_size.w) * 2.0f) - 1.0f;
result.y = ((screen_xy.y / screen_size.h) * 2.0f) - 1.0f;
return result;
}