Files
AR-Menu/Library/PackageCache/com.unity.shadergraph@0e6324a629e1/Documentation~/Compute-Deformation-Node.md
2025-11-30 08:35:03 +02:00

13 lines
1000 B
Markdown

# Compute Deformation Node
## Description
This node lets you pass compute deformed vertex data to a vertex shader, and only works with the [Entities Graphics package](https://docs.unity3d.com/Packages/com.unity.entities.graphics@latest/). You must provide `DeformedVertexData` in the `_DeformedMeshData` buffer. The node uses the `_ComputeMeshIndex` property to calculate where the `DeformedVertexData` associated with the current mesh are located in the `_DeformedMeshData` buffer. To output data, you must either install both the Entities Graphics package and DOTS Animation packages, or use a custom solution.
## Ports
| Name | Direction | Type | Stage | Description |
|:--------- |:-----------|:--------|:-------|:------------|
| Position | Output | Vector3 | Vertex | Outputs the deformed vertex position. |
| Normal | Output | Vector3 | Vertex | Outputs the deformed vertex normal. |
| Tangent | Output | Vector3 | Vertex | Outputs the deformed vertex tangent. |