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 | 210c0e371af586bedf13d8ac32825fc5d45364d1 (patch) | |
| tree | d1f5a47c6175a2e6061e9334bea0ffca9f2cf41f /src/main/resources/shaders/modules/utils.glsl | |
| parent | 536ab848ee2eb179752756aef7e30c40c4368cb3 (diff) | |
| download | art-playground-openrndr-210c0e371af586bedf13d8ac32825fc5d45364d1.tar.gz art-playground-openrndr-210c0e371af586bedf13d8ac32825fc5d45364d1.zip | |
Add flow
Diffstat (limited to 'src/main/resources/shaders/modules/utils.glsl')
| -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); |
