Adapting shaders to drop the "discard" command