Jump to content
Posted 26 April 2012 - 10:07 AM
Posted 26 April 2012 - 01:42 PM
Posted 26 April 2012 - 09:18 PM
Thank you very much Adam_42.
What you need to do is to create two shaders (each in their own effect file), and switch shaders between draw calls, in the same way that you can swap textures between draw calls.
If the book doesn't cover that then you might want to find another one!
Posted 27 April 2012 - 01:08 AM
But what about pixel shader and vertex shader defined in effect file (.fx)? There has to be only one vertex shader and only one pixel shader in effect file.
Posted 27 April 2012 - 10:20 AM