From 37db67f950539467f6d041264da94a9e38f72c7a Mon Sep 17 00:00:00 2001 From: Jules Fouchy Date: Mon, 29 Apr 2024 21:37:58 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9F=A6=20[Node]=20Map=20on=20Disk?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Nodes/50 2D Modifier/Map on Disk.clbnode | 13 +++++ .../Map on Disk.clbnode.presets.json | 47 +++++++++++++++++++ 2 files changed, 60 insertions(+) create mode 100644 Nodes/50 2D Modifier/Map on Disk.clbnode create mode 100644 Nodes/50 2D Modifier/Map on Disk.clbnode.presets.json diff --git a/Nodes/50 2D Modifier/Map on Disk.clbnode b/Nodes/50 2D Modifier/Map on Disk.clbnode new file mode 100644 index 00000000..c5b44bf5 --- /dev/null +++ b/Nodes/50 2D Modifier/Map on Disk.clbnode @@ -0,0 +1,13 @@ +// To learn how to write nodes, see https://coollab-art.com/Tutorials/Writing%20Nodes/Intro + +INPUT float 'Radius'; +INPUT Point2D 'Center'; + +UV main(UV Image) +{ + vec2 polar = Cool_polar_coordinates(Image); + polar.x *= 'Radius'; + polar.y /= TAU; + polar.y += 0.5; + return polar + 'Center'; +} diff --git a/Nodes/50 2D Modifier/Map on Disk.clbnode.presets.json b/Nodes/50 2D Modifier/Map on Disk.clbnode.presets.json new file mode 100644 index 00000000..79bee676 --- /dev/null +++ b/Nodes/50 2D Modifier/Map on Disk.clbnode.presets.json @@ -0,0 +1,47 @@ +{ + "Presets": { + "Underlying container": [ + { + "first": "22436692-3766-4dd5-980b-1b4c95755f9f", + "second": { + "Name": "Default", + "Values": [ + { + "index": 2, + "data": { + "Name": "Radius", + "Value": 1.0, + "Metadata": { + "Bounds": { + "Has min bound": true, + "Min": 0.0, + "Has max bound": false, + "Max": 1.0, + "Drag speed": 0.0010000000474974514, + "Use slider": false, + "Is logarithmic": true + } + } + } + }, + { + "index": 3, + "data": { + "Name": "Center", + "Value": { + "Point2D": { + "x": 0.0, + "y": 0.0 + } + }, + "Metadata": { + "Drag speed": 0.00009999999747378752 + } + } + } + ] + } + } + ] + } +} \ No newline at end of file