AnalyticalGraphicsInc/cesium — pull request #42 by bagnell (2012-05-25 00:40:56+00:00)
Title: Fill poles

Fill the poles in screen space.

* Create a viewport quad over each pole.
* Attach the texture that the tiles were drawn to.
* In the fragment shader:
* If the same fragment in the texture was drawn to, discard.
* If the ray through the fragment doesn't intersect the ellipsoid, discard.
* Use the ray/ellipsoid intersection to compute the position, normal and fragment color, similar to how tiles are shaded.