How to get texture coords in shader chunks

For UV (tex) coordinates to be included to the shader you need to instruct somehow the shader to do that. The easiest way is to assign a texture to at least one material channel.

If you are using only the emissive channel, then reference a texture on that channel and your shader will work:

2 Likes