Flat face colors to a 3d surface plot in plotly js?

Hi, I am trying to plot a matlab like 3d surface plot output with plotly using javascript. I am able to generate the output except the colors in plotly are in a gradient mode while in matlab there is option to have flat face colors (where each grid is colored differently rather than the gradient coloring) but couldn’t find a way to do this in plotly js.

Can someone please help ???