add support for automatically generating flat-shaded normals