From 7630aeb6edaf51168fc741027191d6f717ee49b7 Mon Sep 17 00:00:00 2001 From: Digvijaysinh Gohil Date: Fri, 13 Oct 2023 21:22:21 +0530 Subject: [PATCH] Update README.md Documentation for Polygon node. --- README.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/README.md b/README.md index ad9afdd..be973b3 100644 --- a/README.md +++ b/README.md @@ -105,6 +105,25 @@ Generates an ellipse shape based on input UV at the size specified by inputs ___
+

Polygon node

+Generates a regular polygon shape based on input UV at the size specified by inputs width and height. The polygon's amount of sides is determined by input sides. The generated shape can be offset or tiled by connecting a TilingAndOffset node. Note that in order to preserve the ability to offset the shape within the UV space the shape will not automatically repeat if tiled. To achieve a repeating polygon effect first connect your TilingAndOffset output through a Fract node. +
+ +**Inputs** +|Name|Type|Binding|Description| +|---|---|---|---| +|uv|vec2|UV|Input UV value| +|sides|int|none|Amount of sides| +|width|float|none|Polygon width| +|height|float|none|Polygon height| + +**Outputs** +|Name|Type|Binding|Description| +|---|---|---|---| +|output|float|None|Output polygon value| +___ +
+

Rectangle node

Generates a rectangle shape based on input UV at the size specified by inputs width and height. The generated shape can be offset or tiled by connecting a TilingAndOffset node. Note that in order to preserve the ability to offset the shape within the UV space the shape will not automatically repeat if tiled. To achieve a repeating rectangle effect first connect your TilingAndOffset output through a Fract node.