I replaced texture2D with texture, because the APIs appear drop-in compatible. As for gl_FragColor, it looks like most of these shaders were built with those new APIs in mind, because they had declared an out variable f_color. I just used that instead. All of the shaders work now, at least on the few machines I tested.
I'm on an M1 Mac and I noticed that the alternative shaders weren't working--they were throwing errors about unknown identifiers like
gl_FragColor
andtexture2D
. Looks like OpenGL 3.30 deprecated texture2D and the predefined gl_FragColor variable.I replaced texture2D with texture, because the APIs appear drop-in compatible. As for gl_FragColor, it looks like most of these shaders were built with those new APIs in mind, because they had declared an out variable f_color. I just used that instead. All of the shaders work now, at least on the few machines I tested.