diff options
| author | yum <yum.food.vr@gmail.com> | 2025-02-19 23:42:46 -0800 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2025-02-19 23:42:46 -0800 |
| commit | cba7e1ab0bfa89b228955e18b47cf7aca2a84c9f (patch) | |
| tree | fb138e6932281f220e30d3e75c9d6112174c60c5 /pema99.cginc | |
| parent | 547c6064f6a8ab2749f496ce7ea2856e8cc1bcda (diff) | |
Add vertex domain warping gimmick
Diffstat (limited to 'pema99.cginc')
| -rw-r--r-- | pema99.cginc | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/pema99.cginc b/pema99.cginc new file mode 100644 index 0000000..030772b --- /dev/null +++ b/pema99.cginc @@ -0,0 +1,30 @@ +#ifndef __PEMA_99_INC
+#define __PEMA_99_INC
+
+/*
+MIT License
+
+Copyright (c) 2022 Pema Malling
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+*/
+
+#define glsl_mod(x,y) (((x)-(y)*floor((x)/(y))))
+
+#endif // __PEMA_99_INC
|
