hoist discard statements from vertex shader to fragment shader