Nodes > Main > Sample Mesh Data Texture

This node samples mesh attributes (Position, Normal, Velocity, Mesh UV) from a texture atlas generated by the Mesh Data Texture Custom Component, supporting effects like spawning particles from meshes and vertex animation. The source mesh must have valid UVs to work. See the Mesh Data Texture guide for more details.
Inputs
| Name | Type | Description |
|---|---|---|
| UV Coords | float | UV coordinates in 0–1 range, used to sample the texture atlas tile. |
| Normal Offset | float | Moves the output position along the normal vector by this amount. Useful for spawning particles slightly on top of the surface. |
| Velocity Scale | float | Multiplier applied to velocity vector. |
Outputs
| Name | Type | Description |
|---|---|---|
| Position | float | Mesh position sampled from encoded texture atlas. |
| Normal | float | Mesh normals sampled from encoded texture atlas. |
| Velocity | float | Mesh velocity sampled from encoded texture atlas. |
| Not Valid | float | Returns 1.0 if pixel is outside safe bounds or having invalid pixel data, otherwise returns 0.0. Can be used to discard unwanted data or connect to a Kill Particle node to remove particles. |
| Mesh Surface UV | float | Mesh UVs sampled from encoded texture atlas. |
Properties
| Name | Type | Description |
|---|---|---|
| Normal | bool | Enables normal sampling from atlas if available. |
| Velocity | bool | Enables velocity sampling from atlas if available. |
| UV | bool | Enables UV sampling from atlas if available. |
| Interpolate Position | bool | Enables software bilinear interpolation for smoother position sampling. |
Was this page helpful?