Skip to content

Commit

Permalink
🟦 [Node] Map on Disk
Browse files Browse the repository at this point in the history
  • Loading branch information
JulesFouchy committed Apr 29, 2024
1 parent 72f1374 commit 37db67f
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Nodes/50 2D Modifier/Map on Disk.clbnode
Original file line number Diff line number Diff line change
@@ -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';
}
47 changes: 47 additions & 0 deletions Nodes/50 2D Modifier/Map on Disk.clbnode.presets.json
Original file line number Diff line number Diff line change
@@ -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
}
}
}
]
}
}
]
}
}

0 comments on commit 37db67f

Please sign in to comment.