Skip to main content
Version: 5.x

Nodes > Main > Sample Mesh Data Texture

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

NameTypeDescription
UV CoordsfloatUV coordinates in 0–1 range, used to sample the texture atlas tile.
Normal OffsetfloatMoves the output position along the normal vector by this amount. Useful for spawning particles slightly on top of the surface.
Velocity ScalefloatMultiplier applied to velocity vector.

Outputs

NameTypeDescription
PositionfloatMesh position sampled from encoded texture atlas.
NormalfloatMesh normals sampled from encoded texture atlas.
VelocityfloatMesh velocity sampled from encoded texture atlas.
Not ValidfloatReturns 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 UVfloatMesh UVs sampled from encoded texture atlas.

Properties

NameTypeDescription
NormalboolEnables normal sampling from atlas if available.
VelocityboolEnables velocity sampling from atlas if available.
UVboolEnables UV sampling from atlas if available.
Interpolate PositionboolEnables software bilinear interpolation for smoother position sampling.
Was this page helpful?
Yes
No