Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


Newbie in Shaders. MetallicFlakes.fx

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

Hi, i''m trying to run the MetallicFlakes.fx that come with the SDK. It run fine, except that the enviromental texture is not compute ("lobbycube.dds"). (The mesh doesn''t *reflect* any texture) I use this code to run the shaders. effect.SetValue("WorldView",this.device.Transform.World*this.device.Transform.View); effect.SetValue("Projection",this.device.Transform.Projection); int numPasses = effect.Begin(0); for (int pass = 0; pass < numPasses; pass++) { effect.Pass(pass); mesh.DrawSubset(i); effect.End(); } I''d looking for path problems but System.IO.Directory.GetCurrentDirectory() are the same path where the texture is stored when the effect is loaded. I''ll apreciated any help,

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!