> Sorry mate, I tried replying from my phone. Didn't work too well. > > Try the shaders here > > And do something like, move a line down, or expand a code block out. Eventually you > get an $EOF error. It's definitely to do with Mame, as the same error causing file > will work perfect in AttractMode and other programs.
I just looked at them. You're just trying to combine the curvature and corner rounding from CRT-geom with Lotte's CRT shader? People will like that.
But I just checked. The pixel shader is 8172 characters right now. If you add 20 characters you'll hit 8192 and the last character will be cut off. Then MAME will give you the error you see.
I guess that it is a real MAME error. It should not just read the first 8K of the shader file, right? Maybe someone that knows the GLSL MAME code knows why it is like it is.
EDIT: in gl_shader_mgr.c the file sizes are hard coded to be 8192 bytes? Why? EDIT2: I'm an idiot. Now that I actually look at that file, it's the filename string that is 8192 characters. That doesn't change the fact that only the first 8191 characters of the shader are read though. But I don't know where that is.