Splitting up #4196 into smaller tasks
This task is closely related to #11716, but it focuses on ground atmosphere rather than fog.
In GlobeFS.glsl, the globe shader handles both fog and ground atmosphere. In the spirit of Model's pipeline stages, I envision this being implemented as a GroundAtmospherePipelineStage that's separate from FogPipelineStage
Also, see #11681 (comment) for the proposed scene.groundAtmosphere object that will make it easier to propagate settings via the FrameState and/or AutomaticUniforms
One detail to note: Some details like computing the atmosphere color would be expensive to duplicate if both fog and ground atmosphere are needed for the same model, so it's best to avoid that.
Splitting up #4196 into smaller tasks
This task is closely related to #11716, but it focuses on ground atmosphere rather than fog.
In
GlobeFS.glsl, the globe shader handles both fog and ground atmosphere. In the spirit ofModel's pipeline stages, I envision this being implemented as aGroundAtmospherePipelineStagethat's separate fromFogPipelineStageAlso, see #11681 (comment) for the proposed
scene.groundAtmosphereobject that will make it easier to propagate settings via theFrameStateand/orAutomaticUniformsOne detail to note: Some details like computing the atmosphere color would be expensive to duplicate if both fog and ground atmosphere are needed for the same model, so it's best to avoid that.