Original Post
I get the feeling this threads going to be bumped with new questions periodically by me, so i pre-emptivley apologise for that :) Ok, to business. I'm implimenting some CG shaders to render my terrain, and so far it's going well. I have a terrain class, which is a 2d grid with textures etc. Up until now i've simply activated/deactivated the shader around the theTerrain->Render() call in the draw loop. however now that i'm reaching the point where i want to pass vertex data to the fragment shader, and i'm not sure how to do this (i want to pass the height of a vertex, so i can then modulate the alpha of a texture by the height). the NVidia explanations don't seem to cover how to do this, and seeing as how debugging shaders seems to be far more difficult than debugging c++, i was hopeing someone could explain the methods involved. thank you for your time.