It is only possible apply two different materials to ExtrudeGeometry
. One for the side faces, the other one for the caps.
If this setup is not sufficient for you, you have to modify ExtrudeGeometry
so it defines BufferGeometry.groups
data differently.