visgl / deck.gl

WebGL2 powered visualization framework
https://deck.gl
MIT License
12.25k stars 2.08k forks source link

gradient filling #3431

Open huashaoxu opened 5 years ago

huashaoxu commented 5 years ago

please, dekcgl whether or not consider supporting gradient filling a ploygon feature? like this:

image

Pessimistress commented 5 years ago

@tsherif

tsherif commented 5 years ago

My feeling is this is doable. The key thing is how to calculate the UVs. I wonder if it would work to define a min and max lat/lng, and then calculate the UVs based on the common space x,y of the area they define.

huashaoxu commented 5 years ago

then, how to do this, any examples?

tsherif commented 5 years ago

@huashaoxu sorry, I meant doable as in something we should be able to implement support for. It isn't functionality that currently exists.

huashaoxu commented 5 years ago

@tsherif appreciate your response, i will looking forward to its new functionality.

shanshanzhu commented 4 years ago

Does this duplicate https://github.com/visgl/deck.gl/issues/2663 ?