[SOLVED] PGraphics or PImage as Uniform not working when using GLSL in Java OpenGL

I tried running the program but it gives me a NPE at sh.bind().

Anyway: your texture is probably not in the GPU. It’s not of type P2D or P3D. Maybe that helps?