diff options
| author | Akshay Nair <phenax5@gmail.com> | 2026-09-14 11:46:56 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2026-09-14 11:46:56 +0530 |
| commit | 707c8896cef6bff291f5d2f3339cf9bf46ee2242 (patch) | |
| tree | fd62d97b8d92c0b0cc8ff817ce2477df771d20d7 /src/main/resources/shaders/modules/sdf.cs | |
| parent | 42b66232530f933b184d446a7461e2e9f8d42bce (diff) | |
| download | art-playground-openrndr-707c8896cef6bff291f5d2f3339cf9bf46ee2242.tar.gz art-playground-openrndr-707c8896cef6bff291f5d2f3339cf9bf46ee2242.zip | |
Refactor stuff
Diffstat (limited to 'src/main/resources/shaders/modules/sdf.cs')
| -rw-r--r-- | src/main/resources/shaders/modules/sdf.cs | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/main/resources/shaders/modules/sdf.cs b/src/main/resources/shaders/modules/sdf.cs deleted file mode 100644 index 8121b18..0000000 --- a/src/main/resources/shaders/modules/sdf.cs +++ /dev/null @@ -1,12 +0,0 @@ -float sdf_circle(in vec3 p, in float radius) { - return length(p) - radius; -} - -float sdf_plane(in vec3 p, in vec3 normal, in float offset) { - return dot(p, normal) + offset; -} - -float sdf_box(in vec3 p, in vec3 dimens, in float rounding) { - vec3 q = abs(p) - dimens + rounding; - return length(max(q, 0.0)) + min(max(q.x, max(q.y, q.z)), 0.0) - rounding; -} |
