Can't Get UPBGE Custom 2d Filters to Work

It works for me:


pixelate.blend (656.8 KB)

There are just 2 changes:

gl_TexCoord[0] is replaced with bgl_TexCoord.xy (in vec4 bgl_TexCoord; declaration)
gl_FragColor is replaced with fragColor (out vec4 fragColor; declaration)

3 Likes