clean up gl after destroying geometry or material
calculate normals directly in generateSurfaceMesh
calculate normals directly in generateSurfaceMesh; setupNormals only used in cartoon render with face 4