Pixel shader - override,
Members - Reputation: 122
Posted 16 October 2005 - 09:41 AM
Members - Reputation: 248
Posted 16 October 2005 - 10:06 AM
Yes you can enable and disable shaders at run time. If fact it's a rare occurrence for everything to use the same shader in a game/application. You may load and enable them anywhere you like (obviously not in the middle of drawing a polygon or something like that).
You can pass data into the shader, so sure, its possible to let it know if its on an even or odd frame.
Members - Reputation: 432
Posted 17 October 2005 - 03:34 AM
Original post by eq
I think he's trying to change the pixels shader of an EXISTING game.
My guess is that he wants to disable drawing every second frame or so to make a "see through wall" hack ;)
This should be possible only if you have a handle to the rendering context.
But to answer one of the original questions. A game might switch shaders several times per frame, typically once per material rendered on the screen. Any more exact than that, or how many materials, or whatever, really depends on the game.