Texture coords + atlas

Recommended Posts

I want to use texture atlas to create big terrain (using vs, fs, maybe gs). But I have one big problem - I need coordinates to choose intensity of texture (per vertex). Maybe it's possible to do it better but it's my idea - maybe it will be good - I don't know.
So we have texture atlas like link
What's wrong? I want to use for example only one texture from atlas but it should be repeated. Now I have repeated atlas.
It's easy to choose one texture (snow for example) and stretch it: