Closed ptrgags closed 10 months ago
Yesterday I was talking to @jjhembd about the difficulties with projecting a vertex to the ellipsoid surface, and he had some good insights and resources to look at. Recording them here for the future:
nearestPointOnEllipse
is on the ellipsoid-voxels
branch
Splitting up #4196 into smaller, more focused tasks.
While #11715 focuses on the performance aspects of fog, this issue focuses on the visual aspects of fog.
The main objective is to add a
FogPipelineStage
to theModel
pipeline that applies fog to models far away from the camera in horizon views. I had started prototyping such an architecture in the branch .Some details, like using
czm_fog()
are straightforward. However, the main difficulty comes from computing the atmosphere color. Most of the details here are documented in other issues, so see:4196-3d-tiles-fog
- a branch where I partially implemented this featureSee
GlobeVS.glsl/GlobeFS.glsl
for the existing fog shader code for terrain.Note that fog rendering is enabled separately from ground atmosphere, I'll open a different issue for the latter.