<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: 17.0.0 -",
    "macOS: 14.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ShaderGraph-Docs",
  "identifier" : "/documentation/ShaderGraph/Math/Abs",
  "metadataVersion" : "0.1.0",
  "role" : "ShaderGraph Node",
  "symbol" : {
    "kind" : "ShaderGraph Node",
    "modules" : [
      "ShaderGraph"
    ],
    "preciseIdentifier" : "Shader_ND_absval_float"
  },
  "title" : "Abs"
}
-->

# Abs

Outputs the per-channel absolute value of the input.

## Parameter Types

**Abs (float):**

|Input|Type |
                |-----|-----|
                |`In` |Float|

|Output|Type |
                |------|-----|
                |`Out` |Float|

**Abs (vector2f):**

|Input|Type    |
                |-----|--------|
                |`In` |Vector2f|

|Output|Type    |
                |------|--------|
                |`Out` |Vector2f|

**Abs (half):**

|Input |Type|
                |------|----|
                |`In`  |Half|
                |`Low` |Half|
                |`High`|Half|

|Output|Type|
                |------|----|
                |`Out` |Half|

**Abs (vector2h):**

|Input |Type    |
                |------|--------|
                |`In`  |Vector2h|
                |`Low` |Vector2h|
                |`High`|Vector2h|

|Output|Type    |
                |------|--------|
                |`Out` |Vector2h|

**Abs (color3f):**

|Input|Type         |
                |-----|-------------|
                |`In` |Color3<Float>|

|Output|Type         |
                |------|-------------|
                |`Out` |Color3<Float>|

**Abs (vector3h):**

|Input |Type    |
                |------|--------|
                |`In`  |Vector3h|
                |`Low` |Vector3h|
                |`High`|Vector3h|

|Output|Type    |
                |------|--------|
                |`Out` |Vector3h|

**Abs (vector4h):**

|Input |Type    |
                |------|--------|
                |`In`  |Vector4h|
                |`Low` |Vector4h|
                |`High`|Vector4h|

|Output|Type    |
                |------|--------|
                |`Out` |Vector4h|

**Abs (integer):**

|Input|Type |
                |-----|-----|
                |`X`  |Int32|

|Output|Type |
                |------|-----|
                |`Out` |Int32|

**Abs (vector3f):**

|Input|Type    |
                |-----|--------|
                |`In` |Vector3f|

|Output|Type    |
                |------|--------|
                |`Out` |Vector3f|

**Abs (vector4f):**

|Input|Type    |
                |-----|--------|
                |`In` |Vector4f|

|Output|Type    |
                |------|--------|
                |`Out` |Vector4f|

**Abs (color4f):**

|Input|Type         |
                |-----|-------------|
                |`In` |Color4<Float>|

|Output|Type         |
                |------|-------------|
                |`Out` |Color4<Float>|

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)