How to assign a GLSL shader to an object?

See here.