Smooth shading on Extruded Geometry

Is there any way to smooth shade the Extruded Geometry?


Thank you

I tried this method, Smooth Shading on extrude geometry works with this method.

import * as BufferGeometryUtils from 'https://cdn.skypack.dev/three@0.133.1/examples/jsm/utils/BufferGeometryUtils';
geometry.deleteAttribute("normal");
geometry=BufferGeometryUtils.mergeVertices(geometry);
geometry.computeVertexNormals();
3 Likes