surface: move vertical flip out of the shader