Rise
The Vieneo Province
Loading...
Searching...
No Matches
CloudVolume Namespace Reference

Classes

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

Functions

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

Variables

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

Function Documentation

◆ Add()

Point CloudVolume::Add ( Point a,
Point b )
inline

Definition at line 95 of file CloudVolume.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Advect()

void CloudVolume::Advect ( Parameters & params,
Point physicalWindKms,
double elapsed )
inline

Definition at line 96 of file CloudVolume.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ AirglowVisibility()

float CloudVolume::AirglowVisibility ( float sunCosine)
inline

Definition at line 378 of file CloudVolume.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ AmbientWeight()

float CloudVolume::AmbientWeight ( float altitudeAboveTop)
inline

Definition at line 59 of file CloudVolume.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ AtmosphereWeight()

float CloudVolume::AtmosphereWeight ( float altitude,
float scaleHeight )
inline

Definition at line 65 of file CloudVolume.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ AtmosphericHazeDistanceKm()

float CloudVolume::AtmosphericHazeDistanceKm ( float nominalTop)
inline

Definition at line 372 of file CloudVolume.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ AtmosphericVisibility()

float CloudVolume::AtmosphericVisibility ( float surfaceVisibility,
float altitude,
float surfaceAltitude,
float clearAltitude )
inline

Definition at line 142 of file CloudVolume.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ BackgroundZenithWeight()

float CloudVolume::BackgroundZenithWeight ( float altitude,
const Parameters & params )
inline

Definition at line 52 of file CloudVolume.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ BaseControls()

CloudBaseWeather::Controls CloudVolume::BaseControls ( Point p,
const Parameters & params,
float weather )
inline

Definition at line 214 of file CloudVolume.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ BaseLightingWeight()

float CloudVolume::BaseLightingWeight ( Point eye,
const Parameters & params,
uint32_t seed = DefaultSeed )
inline

Definition at line 349 of file CloudVolume.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Boundaries()

Column CloudVolume::Boundaries ( Point p,
const Parameters & params,
uint32_t seed = DefaultSeed )
inline

Definition at line 325 of file CloudVolume.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Density()

float CloudVolume::Density ( Point p,
const Parameters & params,
uint32_t seed = DefaultSeed )
inline

Definition at line 341 of file CloudVolume.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ DiffuseSunDisplayAttenuation()

float CloudVolume::DiffuseSunDisplayAttenuation ( float transmission,
float sunCosine )
inline

Definition at line 384 of file CloudVolume.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ DiffuseSunTransmission()

float CloudVolume::DiffuseSunTransmission ( Point p,
Point towardSun,
const Parameters & params,
uint32_t seed = DefaultSeed )
inline

Definition at line 354 of file CloudVolume.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GroundLightAt()

GroundLightTexel CloudVolume::GroundLightAt ( const GroundLighting & lighting,
size_t index )
inline

Definition at line 162 of file CloudVolume.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ LegacyBoundaries()

Column CloudVolume::LegacyBoundaries ( Point p,
const Parameters & params,
uint32_t seed = DefaultSeed )
inline

Definition at line 222 of file CloudVolume.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ LegacySampleMedium()

Medium CloudVolume::LegacySampleMedium ( Point p,
const Parameters & params,
uint32_t seed = DefaultSeed )
inline

Definition at line 279 of file CloudVolume.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Length()

float CloudVolume::Length ( Point p)
inline

Definition at line 94 of file CloudVolume.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Lerp()

float CloudVolume::Lerp ( float a,
float b,
float t )
inline

Definition at line 50 of file CloudVolume.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MinimumBase()

float CloudVolume::MinimumBase ( const Parameters & params)
inline

Definition at line 219 of file CloudVolume.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Noise()

float CloudVolume::Noise ( Point p,
uint32_t seed = DefaultSeed,
int mask = 63 )
inline

Definition at line 192 of file CloudVolume.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Pocket()

float CloudVolume::Pocket ( float detail,
float fine )
inline

Definition at line 275 of file CloudVolume.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ProjectGround()

GroundProjection CloudVolume::ProjectGround ( int cube,
int u,
int v )
inline

Definition at line 171 of file CloudVolume.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ RainDensity()

float CloudVolume::RainDensity ( const Medium & medium)
inline

Definition at line 345 of file CloudVolume.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SampleMedium()

Medium CloudVolume::SampleMedium ( Point p,
const Parameters & params,
uint32_t seed = DefaultSeed )
inline

Definition at line 329 of file CloudVolume.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Saturate()

float CloudVolume::Saturate ( float x)
inline

Definition at line 49 of file CloudVolume.h.

Here is the call graph for this function:

◆ Scale()

Point CloudVolume::Scale ( Point p,
float s )
inline

Definition at line 93 of file CloudVolume.h.

Here is the call graph for this function:

◆ ScatteredSunlight()

Point CloudVolume::ScatteredSunlight ( Point incident,
float sunCosine,
float transmission )
inline

Definition at line 400 of file CloudVolume.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ScreenOpacity()

float CloudVolume::ScreenOpacity ( bool volumeEnabled,
float cloudOpacity,
float overrideOpacity )
inline

Definition at line 126 of file CloudVolume.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SelectOrganicMode()

bool CloudVolume::SelectOrganicMode ( Parameters & params,
bool matchingRendererReady,
bool simulator )
inline

Definition at line 42 of file CloudVolume.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ShallowLobe()

float CloudVolume::ShallowLobe ( float distance,
float radius )
inline

Definition at line 209 of file CloudVolume.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ShiplightScatterWeight()

float CloudVolume::ShiplightScatterWeight ( float altitude,
float deckTop,
float scaleHeight,
float visibilityKm,
float localCloudOpacity )
inline

Definition at line 71 of file CloudVolume.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Smooth()

float CloudVolume::Smooth ( float x)
inline

Definition at line 51 of file CloudVolume.h.

Here is the call graph for this function:

◆ SunGlareStrength()

float CloudVolume::SunGlareStrength ( bool volumeEnabled,
float altitudeAboveTop,
float visibleSun,
float transmission )
inline

Definition at line 135 of file CloudVolume.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ TopErosion()

float CloudVolume::TopErosion ( Point advected,
float detail,
float fine,
float structure )
inline

Definition at line 268 of file CloudVolume.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ TopLobe()

float CloudVolume::TopLobe ( float distance,
float radius )
inline

Definition at line 204 of file CloudVolume.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Transmittance()

float CloudVolume::Transmittance ( Point from,
Point to,
const Parameters & params,
uint32_t seed = DefaultSeed )
inline

Definition at line 420 of file CloudVolume.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ UpdateLocalWeather()

void CloudVolume::UpdateLocalWeather ( Parameters & params,
Point & deckWind,
bool belowDeck,
float base,
float activity,
Point observedWind,
double elapsed,
bool reset = false )
inline

Definition at line 108 of file CloudVolume.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ VehicleAmbient()

Point CloudVolume::VehicleAmbient ( Point cloudLight,
Point skyLight,
float altitudeAboveTop )
inline

Definition at line 84 of file CloudVolume.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Voxel()

uint8_t CloudVolume::Voxel ( int x,
int y,
int z,
uint32_t seed )
inline

Definition at line 183 of file CloudVolume.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ WithAirglow()

Point CloudVolume::WithAirglow ( Point scattered,
Point airglow,
float sunCosine,
float altitude,
float base,
float top )
inline

Definition at line 404 of file CloudVolume.h.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ ClearVisibilityKm

float CloudVolume::ClearVisibilityKm = 168.64f
constexpr

Definition at line 134 of file CloudVolume.h.

◆ DefaultSeed

uint32_t CloudVolume::DefaultSeed = 0x52495345u
constexpr

Definition at line 19 of file CloudVolume.h.

◆ MaxHeight

unsigned CloudVolume::MaxHeight = 1152

Definition at line 24 of file CloudVolume.h.

◆ MaxTopRiseKm

float CloudVolume::MaxTopRiseKm = 12.f
constexpr

Definition at line 23 of file CloudVolume.h.

◆ MaxWidth

unsigned CloudVolume::MaxWidth = 2048
constexpr

Definition at line 24 of file CloudVolume.h.

◆ NoiseSize

int CloudVolume::NoiseSize = 64
constexpr

Definition at line 18 of file CloudVolume.h.

◆ RaySteps

int CloudVolume::RaySteps = 72
constexpr

Definition at line 20 of file CloudVolume.h.

◆ ShiplightScatterDistanceKm

float CloudVolume::ShiplightScatterDistanceKm = .1f
constexpr

Definition at line 70 of file CloudVolume.h.