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