I want to place a text on a mesh that has the shape of a branch. the text is embedded in a material. is there a way to deform the text with nodes so that it fits exactly, like in the reference? thanks!
The simplest way to do it is to use the UV Texture Coordinate output rather than the Generated output. Unwrap your object in order to get a square UV (for example with the Follow Active Quads mode) and the text will follow the shape:
As your topology is a bit messy, what you can do is first unwrap with the Project From View option, in the Shader Editor choose the Texture Coordinate UV output, and choose the Extend option of the Image Texture node:
Now in the UV Editor enable the Proportional Editing option, select some vertices and begin to straigthen the UV manually with some move/rotate/scale:
You should get something like that: