<!--
{
  "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/Transform-Matrix",
  "metadataVersion" : "0.1.0",
  "role" : "ShaderGraph Node",
  "symbol" : {
    "kind" : "ShaderGraph Node",
    "modules" : [
      "ShaderGraph"
    ],
    "preciseIdentifier" : "Shader_ND_transformmatrix_vector2M3"
  },
  "title" : "Transform Matrix"
}
-->

# Transform Matrix

Transforms a vector by a matrix.

## Parameter Types

**Transform Matrix (vector2f matrix3x3f):**

|Input|Type      |
                |-----|----------|
                |`In` |Vector2f  |
                |`Mat`|Matrix3x3f|

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

**Transform Matrix (vector4f):**

|Input|Type      |
                |-----|----------|
                |`In` |Vector4f  |
                |`Mat`|Matrix4x4f|

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

**Transform Matrix (vector2f):**

|Input|Type      |
                |-----|----------|
                |`In` |Vector2f  |
                |`Mat`|Matrix2x2f|

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

**Transform Matrix (vector3f matrix4x4f):**

|Input|Type      |
                |-----|----------|
                |`In` |Vector3f  |
                |`Mat`|Matrix4x4f|

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

**Transform Matrix (vector3f):**

|Input|Type      |
                |-----|----------|
                |`In` |Vector3f  |
                |`Mat`|Matrix3x3f|

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

## Parameter descriptions

- `In`: The vector to transform. This node appends an addtional component onto the `In` vector with a value of `1.0` to make the vector match the dimensions of the `Mat` matrix. This additional compenent is removed after the transformation completes.
- `Mat`: The matrix by which to transform the `In` vector; the default is the identity matrix.

---

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)