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

These two lines use different variable names.

uniform sampler2D txtr;
float st = texture2D(txt_in, vec2(0.5, 0.5)).r;

Also, txt_in is not declared or? it should fail to compile?

1 Like