diff --git a/documentation/Nodes/Procedural/CheckerBoard.md b/documentation/Nodes/Procedural/CheckerBoard.md index 9ed1cad..fc7b6ea 100644 --- a/documentation/Nodes/Procedural/CheckerBoard.md +++ b/documentation/Nodes/Procedural/CheckerBoard.md @@ -14,4 +14,18 @@ Generates a checkerboard of alternating colors between inputs color A< |Name|Type|Binding|Description| |---|---|---|---| |output|vec3|None|Output checkerboard value| + +**ShaderInc location** +
`res://addons/ShaderLib/Procedural/CheckerBoard.gdshaderinc` + +**Method signature** +
`vec3 checker_board(vec2 uv, vec3 color_a, vec3 color_b, vec2 frequency)` + +**Parameters** +|Name|Type|Description| +|---|---|---| +|uv|vec2|Input UV value| +|color a|vec3|First checker color| +|color b|vec3|Second checker color| +|frequency|vec2|Scale of checkerboard per axis| ___ \ No newline at end of file diff --git a/documentation/Nodes/Procedural/Fractals/KochFractal.md b/documentation/Nodes/Procedural/Fractals/KochFractal.md index 4448476..3148133 100644 --- a/documentation/Nodes/Procedural/Fractals/KochFractal.md +++ b/documentation/Nodes/Procedural/Fractals/KochFractal.md @@ -16,4 +16,20 @@ Generates an koch curve similar to ice fractal shape based on input UV at the si |---|---|---|---| |out|float|None|Output fractal value| |uv|vec2|None|Output UV value| + +**ShaderInc location** +
`res://addons/ShaderLib/Procedural/Fractals/KochFractal.gdshaderinc` + +**Method signature** +
`float koch_fractal(vec2 uv, float outline, int iteration, float shape_width, float shape_height, out vec2 koch_uv)` + +**Parameters** +|Name|Type|Description| +|---|---|---| +|uv|vec2|Input UV value| +|outline|float|Shape outline thickness| +|iterations|int|Number of steps to repeat the fractal shape| +|shape_width|float|Fractal width| +|shape_height|float|Fractal height| +|koch_uv|out vec2|Returns Koch fractal UV| ___ \ No newline at end of file diff --git a/documentation/Nodes/Procedural/Noise/GradientNoise.md b/documentation/Nodes/Procedural/Noise/GradientNoise.md index fc516fd..393af87 100644 --- a/documentation/Nodes/Procedural/Noise/GradientNoise.md +++ b/documentation/Nodes/Procedural/Noise/GradientNoise.md @@ -12,4 +12,16 @@ Generates a gradient, or Perlin noise based on input UV. The resulting out |Name|Type|Binding|Description| |---|---|---|---| |output|float|None|Output noise value| + +**ShaderInc location** +
`res://addons/ShaderLib/Procedural/Noise/GradientNoise.gdshaderinc` + +**Method signature** +
`float gradient_noise(vec2 uv, float scale)` + +**Parameters** +|Name|Type|Description| +|---|---|---| +|uv|vec2|Input UV value| +|scale|float|Noise scale| ___ \ No newline at end of file diff --git a/documentation/Nodes/Procedural/Noise/GyroidNoise.md b/documentation/Nodes/Procedural/Noise/GyroidNoise.md index 0015456..4f81839 100644 --- a/documentation/Nodes/Procedural/Noise/GyroidNoise.md +++ b/documentation/Nodes/Procedural/Noise/GyroidNoise.md @@ -15,4 +15,19 @@ Generates a gyroid noise based on input UV. The resulting output v |Name|Type|Binding|Description| |---|---|---|---| |output|float|None|Output noise value| + +**ShaderInc location** +
`res://addons/ShaderLib/Procedural/Noise/GyroidNoise.gdshaderinc` + +**Method signature** +
`float gyroid_noise(vec2 uv, float scale, vec2 ratio, float height, float thickness)` + +**Parameters** +|Name|Type|Description| +|---|---|---| +|uv|vec2|Input UV value| +|scale|float|Noise scale| +|ratio|vec2|Noise ratio for X and Y axes| +|height|float|Noise height| +|thickness|float|Noise thickness, clamped between 0 and 1| ___ \ No newline at end of file diff --git a/documentation/Nodes/Procedural/Noise/SimpleNoise.md b/documentation/Nodes/Procedural/Noise/SimpleNoise.md index e1c7097..40d7d3e 100644 --- a/documentation/Nodes/Procedural/Noise/SimpleNoise.md +++ b/documentation/Nodes/Procedural/Noise/SimpleNoise.md @@ -13,4 +13,17 @@ Generates a simplex, or value noise based on input UV. The resulting outpu |Name|Type|Binding|Description| |---|---|---|---| |output|float|None|Output noise value| + +**ShaderInc location** +
`res://addons/ShaderLib/Procedural/Noise/SimpleNoise.gdshaderinc` + +**Method signature** +
`float simple_noise(vec2 uv, float scale, int octaves)` + +**Parameters** +|Name|Type|Description| +|---|---|---| +|uv|vec2|Input UV value| +|scale|float|Noise scale| +|octaves|int|Octaves/Layers of noise, clamped between 1 and 6.| ___ \ No newline at end of file diff --git a/documentation/Nodes/Procedural/Noise/Voronoi.md b/documentation/Nodes/Procedural/Noise/Voronoi.md index 19f438e..4cedceb 100644 --- a/documentation/Nodes/Procedural/Noise/Voronoi.md +++ b/documentation/Nodes/Procedural/Noise/Voronoi.md @@ -20,4 +20,21 @@ Generates a Voronoi or Worley noise based on input UV. Voronoi noise is generate |---|---|---|---| |output|float|None|Output noise value| |cells|float|None|Raw cell data| + +**ShaderInc location** +
`res://addons/ShaderLib/Procedural/Noise/Voronoi.gdshaderinc` + +**Method signature** +
`void voronoi_noise(vec2 uv, float cell_density, float angle_offset, int distance_index, float chebyshev_power, out float output, out float cells)` + +**Parameters** +|Name|Type|Description| +|---|---|---| +|uv|vec2|Input UV value| +|cell_density|float|Density of generated cells| +|angle_offset|float|Offset values for points| +|distance_index|int|Distance matrix to use for Voronoi, 0 = Euclidean, 1 = Manhattan, 2 = Chebyshev| +|chebyshev_power|float|Power for Chebyshev distance| +|output|out float|Output noise value| +|cells|out float|Output raw cell data| ___ \ No newline at end of file diff --git a/documentation/Nodes/Procedural/Shapes/Ellipse.md b/documentation/Nodes/Procedural/Shapes/Ellipse.md index 4951947..27abcb9 100644 --- a/documentation/Nodes/Procedural/Shapes/Ellipse.md +++ b/documentation/Nodes/Procedural/Shapes/Ellipse.md @@ -13,4 +13,17 @@ Generates an ellipse shape based on input UV at the size specified by inputs |Name|Type|Binding|Description| |---|---|---|---| |output|float|None|Output ellipse value| + +**ShaderInc location** +
`res://addons/ShaderLib/Procedural/Shapes/Ellipse.gdshaderinc` + +**Method signature** +
`float ellipse_shape(vec2 uv, float width, float height)` + +**Parameters** +|Name|Type|Description| +|---|---|---| +|uv|vec2|Input UV value| +|width|float|Ellipse width| +|height|float|Ellipse height| ___ \ No newline at end of file diff --git a/documentation/Nodes/Procedural/Shapes/Polygon.md b/documentation/Nodes/Procedural/Shapes/Polygon.md index 5c43999..97435f4 100644 --- a/documentation/Nodes/Procedural/Shapes/Polygon.md +++ b/documentation/Nodes/Procedural/Shapes/Polygon.md @@ -14,4 +14,18 @@ Generates a regular polygon shape based on input UV at the size specified by inp |Name|Type|Binding|Description| |---|---|---|---| |output|float|None|Output polygon value| + +**ShaderInc location** +
`res://addons/ShaderLib/Procedural/Shapes/Polygon.gdshaderinc` + +**Method signature** +
`float polygon_shape(vec2 uv, int sides, float width, float height)` + +**Parameters** +|Name|Type|Description| +|---|---|---| +|uv|vec2|Input UV value| +|sides|int|Number of sides of the polygon| +|width|float|Polygon width| +|height|float|Polygon height| ___ \ No newline at end of file diff --git a/documentation/Nodes/Procedural/Shapes/Rectangle.md b/documentation/Nodes/Procedural/Shapes/Rectangle.md index 1db3c0e..d6d6312 100644 --- a/documentation/Nodes/Procedural/Shapes/Rectangle.md +++ b/documentation/Nodes/Procedural/Shapes/Rectangle.md @@ -13,4 +13,17 @@ Generates a rectangle shape based on input UV at the size specified by inputs `res://addons/ShaderLib/Procedural/Shapes/Rectangle.gdshaderinc` + +**Method signature** +
`float rectangle_shape(vec2 uv, float width, float height)` + +**Parameters** +|Name|Type|Description| +|---|---|---| +|uv|vec2|Input UV value| +|width|float|Rectangle width| +|height|float|Rectangle height| ___ \ No newline at end of file diff --git a/documentation/Nodes/Procedural/Shapes/RoundedPolygon.md b/documentation/Nodes/Procedural/Shapes/RoundedPolygon.md index d50ee8a..09fd7f9 100644 --- a/documentation/Nodes/Procedural/Shapes/RoundedPolygon.md +++ b/documentation/Nodes/Procedural/Shapes/RoundedPolygon.md @@ -15,4 +15,19 @@ Generates a rounded polygon shape based on input UV at the size specified by inp |Name|Type|Binding|Description| |---|---|---|---| |output|float|None|Output rounded polygon value| + +**ShaderInc location** +
`res://addons/ShaderLib/Procedural/Shapes/RoundedPolygon.gdshaderinc` + +**Method signature** +
`float rounded_polygon_shape(vec2 uv, float width, float height, float sides, float roundness)` + +**Parameters** +|Name|Type|Description| +|---|---|---| +|uv|vec2|Input UV value| +|width|float|Ellipse width| +|height|float|Ellipse height| +|sides|float|Number of sides of the polygon| +|roundness|float|Corner radius| ___ \ No newline at end of file diff --git a/documentation/Nodes/Procedural/Shapes/RoundedRectangle.md b/documentation/Nodes/Procedural/Shapes/RoundedRectangle.md index 26d7a32..119664f 100644 --- a/documentation/Nodes/Procedural/Shapes/RoundedRectangle.md +++ b/documentation/Nodes/Procedural/Shapes/RoundedRectangle.md @@ -14,4 +14,18 @@ Generates a rounded rectangle shape based on input UV at the size specified by i |Name|Type|Binding|Description| |---|---|---|---| |output|float|None|Output rounded rectangle value| + +**ShaderInc location** +
`res://addons/ShaderLib/Procedural/Shapes/RoundedRectangle.gdshaderinc` + +**Method signature** +
`float rounded_rectangle_shape(vec2 uv, float width, float height, float radius)` + +**Parameters** +|Name|Type|Description| +|---|---|---| +|uv|vec2|Input UV value| +|width|float|Rectangle width| +|height|float|Rectangle height| +|radius|float|Corner radius| ___ \ No newline at end of file