Better Organized Generated Normal stuff

This commit is contained in:
Rbanh committed 2024-06-22 17:05:41 -04:00
1 parent 0f859671ea
commit 16d5613af1
25 files changed
+1204 -497

No files matched your search

-15
View File
@@ -1,15 +0,0 @@
float min1(float x) {
return min(x, 1.0);
}
float max0(float x) {
return max(x, 0.0);
}
float clamp01(float x) {
return clamp(x, 0.0, 1.0);
}
vec2 clamp01(vec2 x) {
return clamp(x, vec2(0.0), vec2(1.0));
}
vec3 clamp01(vec3 x) {
return clamp(x, vec3(0.0), vec3(1.0));
}