Just installed monogame 3.6, compiled and ran into this problem when loading an effect file: “Invalid arguments, The parameter is incorrect.”
This effect file loaded perfectly on monogame 3.5 but fails when loading on 3.6. Any pointers ?
Here’s my effect file:
sampler TextureSampler : register(s0);
float4 Start;
float4 End;
int GradientMode;
float4 main(float4 position : SV_Position, float4 color : COLOR0, float2 texCoord: TEXCOORD0) : COLOR0
{
if(GradientMode == 1)
return (Start * (1 - texCoord.y) + End * texCoord.y);
else
return (Start * (1 - texCoord.x) + End * texCoord.x);
}
technique Technique1
{
pass Pass1
{
PixelShader = compile ps_4_0 main();
}
}