Jump to content

  • Log In with Google      Sign In   
  • Create Account

Pixel shader - override


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
3 replies to this topic

#1 razwws   Members   -  Reputation: 122

Like
0Likes
Like

Posted 16 October 2005 - 09:41 AM

Hi, Is it possible to overide at run time the pixel shader of a game? Which part of the game has the shader / load the shader? Is it the game application or game engine? How many time a typical game switch shadre and when? Is it possible within the shader to know if I am on the "odd" or "even" frame Thanks Raz

Sponsor:

#2 skow   Members   -  Reputation: 248

Like
0Likes
Like

Posted 16 October 2005 - 10:06 AM

Whew a lot of little questions there.

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.


#3 eq   Members   -  Reputation: 654

Like
0Likes
Like

Posted 17 October 2005 - 01:02 AM

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 ;)

#4 James Trotter   Members   -  Reputation: 432

Like
0Likes
Like

Posted 17 October 2005 - 03:34 AM

Quote:
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.




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS