Calculate terrain detail texture coordinate in vertex shader so that it works better on mobile devices.