Hello,
I’m using Xamarin to build a game that runs on Android and WindowsGL using MonoGame 3.4. So far everything runs great on both platforms, but I’m having troubles loading shaders on either clients. I used the basic shader from here https://github.com/mono/MonoGame/wiki/Effects-And-Shaders and ran it through the content builder (also latest version freshly installed) to get the xnb to add to my projects. The file is then found but can’t be loaded by the ContentManager due to a “The MGFX effect was built for a different platform!” exception.
I understand that the shader is written in HLSL which is used in DirectX and im trying to run it on OpenGL clients, but I read that MonoGame compiles the code internally to run on both and then selects the right one depending on the graphics API used.
Help would be much appreciated!
- Oblotzky
PS: Eventually I just want to create a couple pixel shaders for sprite rendering and post-processing effects.