I was able to make 2 pixel shaders that do some effects I want to a texture.
Now my question is if there is a way to run both these shaders, one after another, so that the second pixel shader performs its modifications on the output of the first pixel shader.
My draw routine looks like:
d3ddev->Clear(0, NULL, D3DCLEAR_TARGET, 0xff000000, 0.0f, 0);d3ddev->BeginScene();d3ddev->SetPixelShader(ps);d3ddev->SetTexture(0, texture);d3ddev->DrawPrimitive(D3DPT_TRIANGLEFAN, 0, 2);d3ddev->EndScene();d3ddev->Present(NULL, NULL, NULL, NULL);
As you can see, I am able to set my pixel shader before drawing the texture; but how can i use 2 pixel shaders? Is this possible?
Thanks in advance.
p.s. Using directX9 and c++...