Rise
The Vieneo Province
Loading...
Searching...
No Matches
CloudVolume.h File Reference
#include <algorithm>
#include <cmath>
#include <cstdint>
#include <array>
#include "CloudWeatherMap.h"
#include "CloudBillowNoise.h"
#include "CloudPerlinNoise.h"
#include "CloudBaseWeather.h"
#include "CelestialEclipse.h"
#include "CloudOrganicShape.inl"
Include dependency graph for CloudVolume.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  CloudVolume::Point
struct  CloudVolume::Parameters
struct  CloudVolume::GroundLighting
struct  CloudVolume::GroundLightTexel
struct  CloudVolume::GroundProjection
struct  CloudVolume::Column
struct  CloudVolume::Medium

Namespaces

namespace  CloudVolume

Functions

bool CloudVolume::SelectOrganicMode (Parameters &params, bool matchingRendererReady, bool simulator)
float CloudVolume::Saturate (float x)
float CloudVolume::Lerp (float a, float b, float t)
float CloudVolume::Smooth (float x)
float CloudVolume::BackgroundZenithWeight (float altitude, const Parameters &params)
float CloudVolume::AmbientWeight (float altitudeAboveTop)
float CloudVolume::AtmosphereWeight (float altitude, float scaleHeight)
float CloudVolume::ShiplightScatterWeight (float altitude, float deckTop, float scaleHeight, float visibilityKm, float localCloudOpacity)
Point CloudVolume::VehicleAmbient (Point cloudLight, Point skyLight, float altitudeAboveTop)
Point CloudVolume::Scale (Point p, float s)
float CloudVolume::Length (Point p)
Point CloudVolume::Add (Point a, Point b)
void CloudVolume::Advect (Parameters &params, Point physicalWindKms, double elapsed)
void CloudVolume::UpdateLocalWeather (Parameters &params, Point &deckWind, bool belowDeck, float base, float activity, Point observedWind, double elapsed, bool reset=false)
float CloudVolume::ScreenOpacity (bool volumeEnabled, float cloudOpacity, float overrideOpacity)
float CloudVolume::SunGlareStrength (bool volumeEnabled, float altitudeAboveTop, float visibleSun, float transmission)
float CloudVolume::AtmosphericVisibility (float surfaceVisibility, float altitude, float surfaceAltitude, float clearAltitude)
GroundLightTexel CloudVolume::GroundLightAt (const GroundLighting &lighting, size_t index)
GroundProjection CloudVolume::ProjectGround (int cube, int u, int v)
uint8_t CloudVolume::Voxel (int x, int y, int z, uint32_t seed)
float CloudVolume::Noise (Point p, uint32_t seed=DefaultSeed, int mask=63)
float CloudVolume::TopLobe (float distance, float radius)
float CloudVolume::ShallowLobe (float distance, float radius)
CloudBaseWeather::Controls CloudVolume::BaseControls (Point p, const Parameters &params, float weather)
float CloudVolume::MinimumBase (const Parameters &params)
Column CloudVolume::LegacyBoundaries (Point p, const Parameters &params, uint32_t seed=DefaultSeed)
float CloudVolume::TopErosion (Point advected, float detail, float fine, float structure)
float CloudVolume::Pocket (float detail, float fine)
Medium CloudVolume::LegacySampleMedium (Point p, const Parameters &params, uint32_t seed=DefaultSeed)
Column CloudVolume::Boundaries (Point p, const Parameters &params, uint32_t seed=DefaultSeed)
Medium CloudVolume::SampleMedium (Point p, const Parameters &params, uint32_t seed=DefaultSeed)
float CloudVolume::Density (Point p, const Parameters &params, uint32_t seed=DefaultSeed)
float CloudVolume::RainDensity (const Medium &medium)
float CloudVolume::BaseLightingWeight (Point eye, const Parameters &params, uint32_t seed=DefaultSeed)
float CloudVolume::DiffuseSunTransmission (Point p, Point towardSun, const Parameters &params, uint32_t seed=DefaultSeed)
float CloudVolume::AtmosphericHazeDistanceKm (float nominalTop)
float CloudVolume::AirglowVisibility (float sunCosine)
float CloudVolume::DiffuseSunDisplayAttenuation (float transmission, float sunCosine)
Point CloudVolume::ScatteredSunlight (Point incident, float sunCosine, float transmission)
Point CloudVolume::WithAirglow (Point scattered, Point airglow, float sunCosine, float altitude, float base, float top)
float CloudVolume::Transmittance (Point from, Point to, const Parameters &params, uint32_t seed=DefaultSeed)

Variables

constexpr int CloudVolume::NoiseSize = 64
constexpr uint32_t CloudVolume::DefaultSeed = 0x52495345u
constexpr int CloudVolume::RaySteps = 72
constexpr float CloudVolume::MaxTopRiseKm = 12.f
constexpr unsigned CloudVolume::MaxWidth = 2048
constexpr unsigned CloudVolume::MaxHeight = 1152
constexpr float CloudVolume::ShiplightScatterDistanceKm = .1f
constexpr float CloudVolume::ClearVisibilityKm = 168.64f