EDIT: These tutorials solved my problem:
http://rbwhitaker.wikidot.com/monogame-accessing-the-xna-content-pipeline
http://rbwhitaker.wikidot.com/monogame-managing-content
I’m trying to learn from this tutorial and to continue I learned that I must convert this effects file to .mgfxo to make it work with MonoGame. I’ve converted the file with 2MGFX but what do I do with it now?
I have this code in LoadContent():
effect = Content.Load<Effect> ("effects");
this in Draw()
effect.CurrentTechnique = effect.Techniques["Pretransformed"];
foreach (EffectPass pass in effect.CurrentTechnique.Passes)
{
pass.Apply();
}
and have added effects.mgfxo to my project’s Content folder as I would’ve done with a .fx file.
and when I try to run it I get this error:
An unhandled exception of type 'Microsoft.Xna.Framework.Content.ContentLoadException' occurred in MonoGame.Framework.dll
Additional information: Could not load effects asset as a non-content file!