diff --git a/Nodes%2FImage%2FDesaturate.md b/Nodes%2FImage%2FDesaturate.md new file mode 100644 index 0000000..e4e9722 --- /dev/null +++ b/Nodes%2FImage%2FDesaturate.md @@ -0,0 +1,41 @@ +# Desaturate + +--- + +## 🔌 INPUT PORTS + +| Name | Type | Description | +|---------------|-------------------------|--------------------------------------------------| +| `inputTexture` | `ImageData` | The input image data to desaturate. | + +--- + +## 📤 EXPORT PORTS + +| Name | Type | Description | +|------------------|-------------|---------------------------------------------------------| +| `inputTexture` | `ImageData` | The resulting desaturated image, stored as `ImageData`. | + +--- + +## 📝 DESCRIPTION + +The **Desaturate** node transforms a full-color texture into a grayscale version. + +The luminance calculation uses the following formula: + +```text +Gray = 0.2989 * Red + 0.5870 * Green + 0.1140 * Blue +``` + +Ideal for previews, stylized effects, or preprocessing steps in visual pipelines. + +This node is derived from [`BaseImageNode`](../../../Nodes/BaseImageNode). + +--- + +## ⚠️ KNOWN ISSUES + +- Currently only supports `Color32` format via `NativeArray`. + +---