@FluffyBucketSnake wrote:
I have been trying to convert a .fx file into a .mgfx, but when I try, it always fails, return the following text:
C:\Program Files (x86)\MSBuild\MonoGame\v3.0\Tools>2MGFX "C:\Users\SolidusComputer\Documents\Visual Studio 2015\Projects\Test\Content\Effect.fx" "C:\Users\SolidusComputer\Documents\Visual Studio 2015\Projects\Test\Content\Effect.mgfx"
fail - Unsupported shader type or not a shader at all
Unsupported shader type or not a shader at all
Unexpected error compiling 'C:\Users\SolidusComputer\Documents\Visual Studio 2015\Projects\Test\Content\Effect.fx'!Shader File:
struct VSIN { float4 Position : POSITION0; float4 Color : COLOR0; }; VSIN VSMain(VSIN input) { VSIN output; //Create output. output.Position = input.Position; output.Color = input.Color; return output; } float4 PSMain(float4 input : COLOR0) : SV_Target0 { return input; } technique Main { pass { VertexShader = compile vs_4_0_level_9_1 VSMain(); PixelShader = compile ps_4_0_level_9_1 PSMain(); } };
Posts: 3
Participants: 2