diff --git a/Nodes/50 2D Modifier/Mirror Repeat.clbnode b/Nodes/50 2D Modifier/Mirror Repeat.clbnode index c13d2570..fdd0f175 100644 --- a/Nodes/50 2D Modifier/Mirror Repeat.clbnode +++ b/Nodes/50 2D Modifier/Mirror Repeat.clbnode @@ -1,8 +1,9 @@ // To learn how to write nodes, see https://coollab-art.com/Tutorials/Writing%20Nodes/Intro INPUT vec2 'Cell Size'; +INPUT float 'Content Size'; UV main(UV _2D_Object) { - return (1. - 2. * (abs(mod(_2D_Object / 'Cell Size' * 0.5 + 0.5, 2.) - 1.))) * 'Cell Size'; + return (1. - 2. * (abs(mod(_2D_Object / 'Cell Size' * 0.5 + 0.5, 2.) - 1.))) * 'Cell Size' / 'Content Size'; } \ No newline at end of file diff --git a/Nodes/50 2D Modifier/Mirror Repeat.clbnode.presets.json b/Nodes/50 2D Modifier/Mirror Repeat.clbnode.presets.json index 1d464b8e..69b4fabe 100644 --- a/Nodes/50 2D Modifier/Mirror Repeat.clbnode.presets.json +++ b/Nodes/50 2D Modifier/Mirror Repeat.clbnode.presets.json @@ -16,13 +16,31 @@ }, "Metadata": { "Bounds": { - "Has min bound": false, + "Has min bound": true, "Min": 0.0, "Has max bound": false, "Max": 1.0, "Drag speed": 0.009999999776482582, "Use slider": false, - "Is logarithmic": false + "Is logarithmic": true + } + } + } + }, + { + "index": 2, + "data": { + "Name": "Content Size", + "Value": 1.0, + "Metadata": { + "Bounds": { + "Has min bound": true, + "Min": 0.0, + "Has max bound": false, + "Max": 1.0, + "Drag speed": 0.009999999776482582, + "Use slider": false, + "Is logarithmic": true } } }