@Luca_Carminati wrote:
Hello everybody.
I want to apply a CRT shader to my game. I downloaded an example from https://github.com/Jjagg/mg-crt/tree/81bcf73e02f1087a6223b14aa97145478ead45fd. I modified the example for testing. I fill the screen with "zeros" using my bitmap font and it works correctly. The problem is that this shader seems to work only with OpenGL projects. So I downloaded a version for Windows from https://github.com/Jjagg/mg-crt/blob/8d3949114ac2daf92e526638a023e15982273d5b/Game1/Content/crt-lottes-mg.fx (I changed the PS_SHADERMODEL from ps_4_0_level_9_1 to ps_4_0_level_9_3 otherwise it doesn't work) and done the same test. It works but there is a bug. As you can see in the image in certain situations it draws a line of incorrect pixels. I tried to compare the OpenGL shader with the Windows one but I've not been able to find the issue (I'm very new to shaders). Can someone please help me (maybe Jjagg)?
Posts: 2
Participants: 1