I'm just wondering if there is a way to get particles to appear over the top of objects that use a custom shader.
I have modified the Shader Creation tutorial to illustrate the problem. I increased the alpha in the pixel shader to 1.0f to make it stand out more. Then I added the following code to the Render method.
Code:
case RM_BLEND:
{
DrawParticle(*Images("../data/Obj/Particles/star.gfx"),0,RED,0.5f,0.3f,0.0f,
Vec(1.2f,0.0f,0.0f),0.0f);
}break;
Here are the results. You can see the particle being drawn off to the side of the ball in the first shot.
Now in the second shot I moved the camera around a bit so that the particle goes in front of the ball, however you can see that it does not render in front of the ball.
If I change the ball to use the standard EE shaders, then the particle renders in front of the ball correctly, as can be seen here in the third shot.
How can I get particles to render correctly with objects using custom shaders?