• Advertisement
Sign in to follow this  

Using Nvidia's SDK effects?

This topic is 4403 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

I'm trying to use the halo effect. I've loaded it and have the following code to impliment it for a leaf that I'm drawing. But nothing happens except the system slows in performance...
[source lang=c#]
            this.device.SetTexture(0, this.GetSurfaceTexture("white").texture);

            Microsoft.DirectX.Direct3D.Effect effect = this.GetSurfaceEffect("halo").effect;
            effect.Technique = "Main";
            int passes = effect.Begin(0);
            for (int i = 0; i < passes; i++)
            {
                effect.BeginPass(i);
                this.GetSurfaceMesh("leaf01").mesh.DrawSubset(0);
                effect.EndPass();
            }
            effect.End();

            this.device.SetTexture(0, this.GetSurfaceTexture("white").texture);
            this.GetSurfaceMesh("leaf01").mesh.DrawSubset(0);

Any help is much appreciated, -Devin [/source]

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement