Finally figured out that alpha blending needs to be enabled for changes
in alpha in the fragment shader to have any effect.