Hello!
New to the forum and generally bad at posting straight-forward questions but here I go..
So, last semester (im a Technical Artist student) we had a 3D-programming course in which we had an assignment to use DirectX or OpenGL to render a textured quad, spinning around in model-space. All fine and dandy, just used a simple VS and FS.
Now we're starting a project course in which we will be developing a small game. Since we have four Game programmers and two Technical Artists, most of my work will be modeling, texturing and animating, but I really want to understand the programming theory as well.
So here's what I havent learned which seems quite crucial to me:
How are different shaders used within a single project?
Let's say I have a basic VS and FS for basic drawing of meshes. Alright. Great!
Now, i implement a VS for creating waves on a water mesh/plane. How would that fit together with the other VS? Do we somehow join them together and have some condition to check if the vertex belongs to a water mesh or a basic static mesh? Do we switch shaders between draw-calls? Some other programming magic?
Not having a somewhat clear idea about how these things are done really hinders my confidence and ability to contribute to our game.
Sorry for the ambiguity, as previously stated I'm not very good at explaining this kind of stuff, but I hope it made some sense.
Thanks in advance ^_^