Partial terrain is turning translucent

I hosted rater image and on top of that is loading dem data for the same, but when putting entities on the same, the entities are not getting clipped by the terrain.

Do you have depthTestAgainstTerrain set to true?

https://cesium.com/docs/cesiumjs-ref-doc/Globe.html?classFilter=globe#depthTestAgainstTerrain