Package com.luciad.maps.effects
Class ScatteringAtmosphereModel
java.lang.Object
com.luciad.maps.effects.AtmosphereModel
com.luciad.maps.effects.ScatteringAtmosphereModel
- All Implemented Interfaces:
AutoCloseable
Atmosphere model that draws a physically based Rayleigh/Mie scattering sky.
This requires a geocentric 3D view and a light configured through GraphicsEffects#getLight. Without both, the effect falls back to the gradient model. Rendering it has a minor additional performance cost compared to the gradient model.
- Since:
- 2026.1
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionCreates a builder pre-filled with this model's parameters.voidclose()booleanprotected voidfinalize()doubleReturns the scattering brightness.doubleReturns the Mie anisotropy.doubleReturns the Mie scattering strength.doubleReturns the Rayleigh scattering strength.inthashCode()booleanReturns whether aerial perspective is enabled, tinting the terrain surface in addition to the sky.Creates a new builder with the default scattering parameters.
-
Method Details
-
finalize
protected void finalize()- Overrides:
finalizein classAtmosphereModel
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Overrides:
closein classAtmosphereModel
-
newBuilder
Creates a new builder with the default scattering parameters.- Returns:
- a new builder.
-
asBuilder
Creates a builder pre-filled with this model's parameters.- Returns:
- a builder pre-filled with this model's parameters.
-
getBrightness
public double getBrightness()Returns the scattering brightness.- Returns:
- the scattering brightness.
-
getRayleighFactor
public double getRayleighFactor()Returns the Rayleigh scattering strength.- Returns:
- the Rayleigh scattering strength.
-
getMieFactor
public double getMieFactor()Returns the Mie scattering strength.- Returns:
- the Mie scattering strength.
-
getMieAnisotropy
public double getMieAnisotropy()Returns the Mie anisotropy.- Returns:
- the Mie anisotropy.
-
isAerialPerspectiveEnabled
public boolean isAerialPerspectiveEnabled()Returns whether aerial perspective is enabled, tinting the terrain surface in addition to the sky.Aerial perspective is the phenomenon where distant terrain takes on the atmosphere's color and fades toward the horizon with distance.
- Returns:
- whether aerial perspective is enabled, tinting the terrain surface in addition to the sky.
-
hashCode
public int hashCode() -
equals
-