As I am programming my little space shooter and gone through many changes containing the planets (changing them from Models to Vertexbased Icospheres) I came across a problem I could not solve yet.
I want to have lighting on my Planets but as basicEffect.lightingenabled = true won't work (I guess it's due to the fact it's no model),
I need to make an own shader to make pixel-based-lighting.
As I am programming with Monogame which is like XNA I tried to read through tutorials which gives solutions to that.
I came across Riemers tutorials who uses a effects.fx-file.
According to the tutorial, I added the file to the Game1ContentContent (yes in Monogame there will be 2 Content Projects of which the latter one is the one to use for the files) and loaded it via Effect effect = Content.Load<Effect>("effects")
But this gives me huge problems.
First I encountered the problem that VS2013 told me that this is not a valid mgfx file.
I stumbled through the net and found that I need to change the version to ps_4_0 and vs_4_0 as well as POSITION and POSITION0 to SV_POSITION.
After that I got an error, telling me that I only could use version 3.X or earlier.
Changing them to ps/vs_3_0 it looked like it was working: Window popped up and seemed to load but after a couple of seconds it
crashes, telling me "Could not load effects asset as a non-content file!", which suprises me, as it is in the content folder.
What can I do about this?