how to use a water material in my polygon?

I made a polygon for a river and want to add the water material as in Sandcastle.
i want to know what i need and how to write the code.

在 2015年3月17日星期二 UTC+8下午3:33:30,ecnuz...@gmail.com写道:

I made a polygon for a river and want to add the water material as in Sandcastle.
i want to know what i need and how to write the code.

Can anyone help me?

Are you using an Entity polygon, or PolygonGeometry? There’s an example of doing this with PolygonGeometry here: http://cesiumjs.org/Cesium/Apps/Sandcastle/index.html?src=Materials.html&label=Showcases (Choose Misc Materials -> Water).

Doing it with an Entity right now is harder than it should be, but I’m hoping to fix that in the near future. If that’s what you’re doing, I’ll see if I can throw together some sample code for you. (I actually started to do this earlier today, but got distracted).

在 2015年3月18日星期三 UTC+8上午11:04:45,Matthew Amato写道:

Are you using an Entity polygon, or PolygonGeometry? There's an example of doing this with PolygonGeometry here: http://cesiumjs.org/Cesium/Apps/Sandcastle/index.html?src=Materials.html&label=Showcases (Choose Misc Materials -> Water).

Doing it with an Entity right now is harder than it should be, but I'm hoping to fix that in the near future. If that's what you're doing, I'll see if I can throw together some sample code for you. (I actually started to do this earlier today, but got distracted).

在 2015年3月17日星期二 UTC+8下午3:33:30,ecnuz...@gmail.com写道:

> I made a polygon for a river and want to add the water material as in Sandcastle.

> i want to know what i need and how to write the code.

Can anyone help me?

--

You received this message because you are subscribed to the Google Groups "cesium-dev" group.

To unsubscribe from this group and stop receiving emails from it, send an email to cesium-dev+...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Thanks for your reply. I think I am using a entity polygon (a polygon from a geojson datasource ). if so, that's the harder one you mentioned. it's ok if there is no solution. I can just replace the material with a simple color. Hope you find the way to do it.