Again me. I adapted the tuto http://www.pygame.org/wiki/GLSLExample close to my problem (just adding uniform variable into the shader and in python program few string to establish connection shader uniform variable and python program)
The code http://bpaste.net/show/13357/ return blank screen gl.glUniform3f(colorr_loc, 1, 0, 0) does not send the red color into shader But if i uncomment //vec3 colorr = vec3(1,0,0); in the pixel shader, then teapot is red as expected. The code: http://bpaste.net/show/13359/ return red teapot. Why command gl.glUniform3f(colorr_loc, 1, 0, 0) does not send the red color into shader? print colorr_loc gives value 0 in first case (blank screen) and value -1 in second case (red teapot)
