Clipping stencil multiply geometry with different color

Hi everyone, I want to complete an example about solid soil layers ,and clipping the different layers with the layers own color , I try to find solution in https://threejs.org/examples/?q=clip#webgl_clipping_stencil , but it seems can not clipping different geometry with different color, is there any wrong whit my code or it can not