Analytic background height fog in metre units, independent of legacy scene fog. 更多...
#include <SkyAtmospherePass.h>
Public 成员函数 | |
| EVENGINE_API_BACKENDS Result< void > | validate () const |
| Validate finite bounded fog coefficients without mutation. | |
Public 属性 | |
| std::array< float, 2 > | directionalElevationRange {0, 0} |
| Optional directional fog fade over sun direction Y in [-1,1]. Equal endpoints disable fading; otherwise lower/upper endpoints produce zero/full authored color. Only directionalInscattering is scaled; physical atmospheric transmittance remains independent. | |
| float | densityPerMetre = 0 |
| float | heightFalloffPerMetre = .006f |
| float | baseHeightMetres = -1.5f |
| float | startDistanceMetres = 73.4803369f |
| std::array< float, 3 > | inscattering {0, 0, 0} |
| float | maximumOpacity = 1 |
| std::array< float, 3 > | directionalInscattering {.78809762f, .64244735f, .55544519f} |
| float | directionalExponent = 5 |
| float | directionalStartDistanceMetres = 100 |
| float | atmosphereContribution = 2.3f |
| float | skyDistanceMetres = 100000 |
详细描述
Analytic background height fog in metre units, independent of legacy scene fog.
Density zero disables the layer. Ambient lighting is derived from the same atmosphere and sun. This value is not a scene-geometry fog pass or a volumetric scattering volume.
在文件 SkyAtmospherePass.h 第 16 行定义.
成员函数说明
◆ validate()
| Result< void > eve::graphics::SkyHeightFogParameters::validate | ( | ) | const |
Validate finite bounded fog coefficients without mutation.
在文件 SkyAtmosphereLuts.cpp 第 121 行定义.
引用了 atmosphereContribution, baseHeightMetres, densityPerMetre, directionalElevationRange, directionalExponent, directionalInscattering, directionalStartDistanceMetres, eve::Diagnostic::error(), eve::Result< T >::failure(), heightFalloffPerMetre, inscattering, eve::InvalidArgument, maximumOpacity, range, skyDistanceMetres, startDistanceMetres , 以及 eve::Result< T >::success().
类成员变量说明
◆ atmosphereContribution
| float eve::graphics::SkyHeightFogParameters::atmosphereContribution = 2.3f |
在文件 SkyAtmospherePass.h 第 30 行定义.
被这些函数引用 validate().
◆ baseHeightMetres
| float eve::graphics::SkyHeightFogParameters::baseHeightMetres = -1.5f |
在文件 SkyAtmospherePass.h 第 23 行定义.
被这些函数引用 validate().
◆ densityPerMetre
| float eve::graphics::SkyHeightFogParameters::densityPerMetre = 0 |
在文件 SkyAtmospherePass.h 第 21 行定义.
被这些函数引用 validate() , 以及 eve::graphics::SkyAtmosphereParameters::validate().
◆ directionalElevationRange
| std::array<float, 2> eve::graphics::SkyHeightFogParameters::directionalElevationRange {0, 0} |
Optional directional fog fade over sun direction Y in [-1,1]. Equal endpoints disable fading; otherwise lower/upper endpoints produce zero/full authored color. Only directionalInscattering is scaled; physical atmospheric transmittance remains independent.
在文件 SkyAtmospherePass.h 第 20 行定义.
被这些函数引用 validate().
◆ directionalExponent
| float eve::graphics::SkyHeightFogParameters::directionalExponent = 5 |
在文件 SkyAtmospherePass.h 第 28 行定义.
被这些函数引用 validate().
◆ directionalInscattering
| std::array<float, 3> eve::graphics::SkyHeightFogParameters::directionalInscattering {.78809762f, .64244735f, .55544519f} |
在文件 SkyAtmospherePass.h 第 27 行定义.
被这些函数引用 validate().
◆ directionalStartDistanceMetres
| float eve::graphics::SkyHeightFogParameters::directionalStartDistanceMetres = 100 |
在文件 SkyAtmospherePass.h 第 29 行定义.
被这些函数引用 validate().
◆ heightFalloffPerMetre
| float eve::graphics::SkyHeightFogParameters::heightFalloffPerMetre = .006f |
在文件 SkyAtmospherePass.h 第 22 行定义.
被这些函数引用 validate().
◆ inscattering
| std::array<float, 3> eve::graphics::SkyHeightFogParameters::inscattering {0, 0, 0} |
在文件 SkyAtmospherePass.h 第 25 行定义.
被这些函数引用 validate().
◆ maximumOpacity
| float eve::graphics::SkyHeightFogParameters::maximumOpacity = 1 |
在文件 SkyAtmospherePass.h 第 26 行定义.
被这些函数引用 validate().
◆ skyDistanceMetres
| float eve::graphics::SkyHeightFogParameters::skyDistanceMetres = 100000 |
在文件 SkyAtmospherePass.h 第 31 行定义.
被这些函数引用 validate().
◆ startDistanceMetres
| float eve::graphics::SkyHeightFogParameters::startDistanceMetres = 73.4803369f |
在文件 SkyAtmospherePass.h 第 24 行定义.
被这些函数引用 validate().
该结构体的文档由以下文件生成:
- src/modules/graphics/sky/SkyAtmospherePass.h
- src/modules/graphics/sky/SkyAtmosphereLuts.cpp