Can globe materials be applied to primitive entities(rectangle, polygon) and gltf model?

I am working on one project and I want to apply contour type material over gLTF. I couldn’t found any way of achieving this. Is there any workaround for the same?

Objective is not to use terrain but gLTF to achieve contour based on elevation and slopes.