I am currently working on a terrain generation (so common problem that you're probably bored already ). I have recently read on gamedev.net topic (can't find it anymore :/) that there's a possibility to have one buffer containing X and Z positions (which is always the same - real positioning will be done later by using translation) and send only Y values to the shader. I was wondering about such method for a while, but I can't find any way to merge these buffers in a shader. If I sent to shader only Y values how can I obtain X and Z values?
One thing that came up to my mind while writing this question was to send X and Z values through the constant buffer. Is this the correct way?
Thank you for any help.