I m trying to make a Point Light Shader, though:
With the versions 4_0_level_9_1 and 4_0_level_9_3 I m running into this error in the MonoGame Content Pipeline:
"Invalid const register num: 42 max allowed 31"
In my Shader I have Arrays of LightPositions, Colors etc with Array Size being the max amount of Lights I might need
with my max Lights being higher than 5, I run into this problem above (<=5 no issue)
I looked for a solution and found out that depending on the version, you can use a different number of constants...
v_4_0 or v_5_0 should give me enough, though MonoGame Content Pipeline throws an Error, saying wrong Parameter for this:
VertexShader = compile vs_5_0 VertexShaderFunction();
PixelShader = compile ps_5_0 PixelShaderFunction();