Jump to content
  • Advertisement

Archived

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

pedorro77

Newbie in Shaders. MetallicFlakes.fx

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

  • Advertisement
×

Important Information

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

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!