Quantcast
Channel: Community | MonoGame - Latest topics
Viewing all articles
Browse latest Browse all 6821

Shader that works in XNA 4.0 is broken in MonoGame

$
0
0

@nbiefeld wrote:

There was an old XNA sample from Microsoft that discussed Sprite Effects. There is a displacement effect that I used in the past with XNA and it’s failing in MonoGame. I found a ported version of this effect as I lost my copy:

https://github.com/CartBlanche/MonoGame-Samples/tree/master/SpriteEffects

I ran this effect two days ago in Visual Studio 2010 and XNA 4.0 Refresh. This works. However the shader is failing in MonoGame.

1). If I am using DirectX, MonoGame says it needs Pixel Shader 4.0 or higher. Shader will not work.

2). When using OpenGL, Pixel Shader 2.0 is fine, yet the shader still fails.

Could someone take a look at this and see what needs changing? I have been struggling with this basic shader for 4 days now.

This is the specific shader - https://github.com/CartBlanche/MonoGame-Samples/blob/master/SpriteEffects/Content/refraction.fx

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 6821

Trending Articles