I made a game on PSM, ported from a previous iOS/Android game. I test it on the emulator and PSVita and runs fine. However, as I test it on a PlayStation Certified Android device, it crashes on load. I'm getting a FileLoadException on the following line:
shaderProgram = new ShaderProgram("/Application/shaders/Render.cgx");
This is my vertex shader:
void main( float4 in spritePosition : POSITION,
float2 in textureCoords : TEXCOORD0,
float4 out gl_Position: POSITION,
float2 out textureVarying: TEXCOORD0,
float4 out colorVarying : COLOR0,
uniform float4x4 projectionMatrix,
uniform float4 color)
{
gl_Position = mul(spritePosition, projectionMatrix);
textureVarying = textureCoords;
colorVarying = color;
}
and my fragment shader:
void main( float4 in colorVarying : COLOR0,
float2 in textureVarying: TEXCOORD0,
float4 out gl_FragColor: COLOR,
uniform sampler2D spriteTexture: TEXUNIT0)
{
float4 colorPremultiplied = float4(colorVarying.xyz * colorVarying.w, colorVarying.w);
gl_FragColor = tex2D(spriteTexture, textureVarying) * colorPremultiplied;
}
What could be causing this problem?
