Pixel Shaders and Vertex Shaders. Where and When?

Started by
1 comment, last by FLCman 22 years, 5 months ago
I understand what Pixel Shaders and Vertex Shaders are. I also understand why to use the PS and VS. But what I don''t understand is where in the game engine these powerful tools should be used? Is there a performance hit loading the program into the GPU? For instance you have separate PS programs and VS programs for several objects that are to rendered to the scene. Do I just load the programs onto the GPU before calling the code to render the objects? Just kinda curious about what some people are doing for this new technology. Thanks ahead of time!
Advertisement
Take a look at the DX8/8.1 tutorials as to how to use them. Other than the initial load there is no other gpu hit associated in maintaing the shader.

But I will warn you there is a MASSIVE hit for pixel shaders as ever picel is processed by the shader, if you don''t have a Radeon 8500 or GeForce 3 card (hardware vertex/pixel shader support) you are going to suffer.

Here are a couple of links


Vertex Shaders



Pixel Shaders


D.V.

Carpe Diem
D.V.Carpe Diem
Thanks a lot for the advice.

This topic is closed to new replies.

Advertisement