Automatically detect and apply flat-shaded terrain.