|
| | CloudLayer (std::uint32_t seed, double cover, double altitude=1500.0, double thickness=1.0, int size=kSize) |
| |
|
const std::vector< float > & | Texels () const |
| | The noise texture, RGBA float per texel (base, detail, 0, 0), row-major (row along y), Size() x Size().
|
| |
|
int | Size () const |
| | Texels per side of the noise texture.
|
| |
|
double | Cover () const |
| |
|
double | Altitude () const |
| |
|
double | BasePeriod () const |
| | Tile size of the base channel [m].
|
| |
|
double | DetailPeriod () const |
| | Tile size of the detail channel [m].
|
| |
|
double | DetailWeight () const |
| | Weight of the detail channel in the noise.
|
| |
|
double | Threshold () const |
| | Noise value where the cloud starts (edge 0 of the density smoothstep).
|
| |
|
double | Softness () const |
| | Width of the cloud edge in noise units (narrower for finer textures, whose detail then shows at the edges).
|
| |
|
double | MaxOpticalDepth () const |
| | Optical depth of the densest cloud (thicker layers for higher coverage, times the thickness).
|
| |
|
double | DepthWidth () const |
| | Noise range over which the optical depth grows to its maximum (wider for overcast, so that it keeps texture).
|
| |
| double | Noise (double x, double y, const CloudDrift &drift) const |
| |
|
double | OpticalDepth (double x, double y, const CloudDrift &drift) const |
| | Vertical optical depth of the layer at a horizontal position (see Noise()).
|
| |
|
double | OpticalDepthOfNoise (double noise) const |
| | Optical depth from a noise value.
|
| |
|
double | MeanTransmittance () const |
| | Mean of exp(-optical depth) over the base tile: the share of the direct sun that gets through on average.
|
| |
|
double | CoveredFraction () const |
| | Share of the base tile covered by cloud (optical depth above 0.3).
|
| |