Archived

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

pedorro77

Newbie in Shaders. MetallicFlakes.fx

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