diff options
| author | Akshay Nair <phenax5@gmail.com> | 2026-10-07 18:07:46 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2026-10-07 18:07:46 +0530 |
| commit | 56a6b43ec8509012755c9d63608fb98155b52a9a (patch) | |
| tree | ac4fa365cea7c6a10fb85d485dd32c51cb92aba3 /src/main/resources/shaders/modules/utils.glsl | |
| parent | 26c45b3bbb42ce3338a715a284cb69322346b3bc (diff) | |
| download | art-playground-openrndr-56a6b43ec8509012755c9d63608fb98155b52a9a.tar.gz art-playground-openrndr-56a6b43ec8509012755c9d63608fb98155b52a9a.zip | |
Add flow
Diffstat (limited to '')
| -rw-r--r-- | src/main/resources/shaders/modules/utils.glsl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/resources/shaders/modules/utils.glsl b/src/main/resources/shaders/modules/utils.glsl index 10e3a48..961480f 100644 --- a/src/main/resources/shaders/modules/utils.glsl +++ b/src/main/resources/shaders/modules/utils.glsl @@ -1,3 +1,5 @@ +#define PI 3.14159265358979323 + float smin(float a, float b, float k) { float h = clamp(0.5 + 0.5 * (b - a) / k, 0.0, 1.0); return mix(b, a, h) - k * h * (1.0 - h); |
