Sign in to follow this  

SlimDX Direct3D9.Sprite,Draw + shader

This topic is 2632 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello, I am trying to use an effect with sprite.draw but its not having any effect on the results.

I believe you are supposed to just do effect.begin, effect.beginpass, spritebatch.begin, draw and then end everything. But it has no effect.

The shader loads ok and looks like this (for testing) -

float4 ps1() : COLOR
{
return float4(1,1,1,1);
}

technique main
{
pass P0
{
VertexShader = null;
PixelShader = compile ps_3_0 ps1();
ZEnable = false;
}
}

Any help is very much appreciated.

Share this post


Link to post
Share on other sites

This topic is 2632 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this