Analytic local participating-media volume injected into atmospheric fog. 更多...
#include <FogVolume.h>
Public 类型 | |
| enum class | Shape { sphere , box , cylinder } |
| Shape public API. 更多... | |
Public 成员函数 | |
| void | setShape (const std::string &shape) |
| Set shape using "sphere", "box" or "cylinder"; unknown selects box. | |
| Shape | getShape () const |
| std::string | getShapeName () const |
| void | setPosition (float x, float y, float z) |
| Set world-space center. | |
| const glm::vec3 & | getPosition () const |
| void | setSize (float x, float y, float z) |
| Set full world-space dimensions; values are clamped positive. | |
| const glm::vec3 & | getSize () const |
| void | setExtinction (float extinction) |
| Signed extinction; negative values carve fog but total density is clamped. | |
| float | getExtinction () const |
| void | setAlbedo (float r, float g, float b) |
| Single-scattering albedo, clamped to [0,1]. | |
| const glm::vec3 & | getAlbedo () const |
| void | setEmissive (float r, float g, float b) |
| Unlit radiance emitted per unit density. | |
| const glm::vec3 & | getEmissive () const |
| void | setAnisotropy (float anisotropy) |
| HG anisotropy in [-0.99,0.99]. | |
| float | getAnisotropy () const |
| void | setEdgeFalloff (float falloff) |
| Fraction of normalized radius used for a smooth edge, in [0,1]. | |
| float | getEdgeFalloff () const |
| void | setNoise (float amount, float scale, int seed) |
| Configure deterministic world-space density variation. | |
| float | getNoiseAmount () const |
| Density-noise blend amount in [0,1]. | |
| float | getNoiseScale () const |
| World-space density-noise frequency. | |
| int | getNoiseSeed () const |
| Stable density-noise seed. | |
| float | sampleExtinction (const glm::vec3 &worldPosition) const |
| Normalized analytic density at a world position, including signed extinction. | |
详细描述
Analytic local participating-media volume injected into atmospheric fog.
在文件 FogVolume.h 第 12 行定义.
成员枚举类型说明
◆ Shape
|
strong |
成员函数说明
◆ getAlbedo()
|
inline |
在文件 FogVolume.h 第 34 行定义.
◆ getAnisotropy()
|
inline |
在文件 FogVolume.h 第 40 行定义.
◆ getEdgeFalloff()
|
inline |
在文件 FogVolume.h 第 43 行定义.
◆ getEmissive()
|
inline |
在文件 FogVolume.h 第 37 行定义.
◆ getExtinction()
|
inline |
在文件 FogVolume.h 第 31 行定义.
◆ getNoiseAmount()
|
inline |
Density-noise blend amount in [0,1].
在文件 FogVolume.h 第 52 行定义.
◆ getNoiseScale()
|
inline |
World-space density-noise frequency.
在文件 FogVolume.h 第 54 行定义.
◆ getNoiseSeed()
|
inline |
Stable density-noise seed.
在文件 FogVolume.h 第 56 行定义.
◆ getPosition()
|
inline |
在文件 FogVolume.h 第 24 行定义.
◆ getShape()
|
inline |
在文件 FogVolume.h 第 19 行定义.
◆ getShapeName()
| std::string eve::graphics::FogVolume::getShapeName | ( | ) | const |
在文件 FogVolume.cpp 第 50 行定义.
◆ getSize()
|
inline |
在文件 FogVolume.h 第 27 行定义.
◆ sampleExtinction()
| float eve::graphics::FogVolume::sampleExtinction | ( | const glm::vec3 & | worldPosition | ) | const |
◆ setAlbedo()
| void eve::graphics::FogVolume::setAlbedo | ( | float | r, |
| float | g, | ||
| float | b | ||
| ) |
◆ setAnisotropy()
| void eve::graphics::FogVolume::setAnisotropy | ( | float | anisotropy | ) |
HG anisotropy in [-0.99,0.99].
在文件 FogVolume.cpp 第 68 行定义.
◆ setEdgeFalloff()
| void eve::graphics::FogVolume::setEdgeFalloff | ( | float | falloff | ) |
Fraction of normalized radius used for a smooth edge, in [0,1].
在文件 FogVolume.cpp 第 72 行定义.
◆ setEmissive()
| void eve::graphics::FogVolume::setEmissive | ( | float | r, |
| float | g, | ||
| float | b | ||
| ) |
◆ setExtinction()
|
inline |
Signed extinction; negative values carve fog but total density is clamped.
在文件 FogVolume.h 第 30 行定义.
引用了 extinction.
◆ setNoise()
| void eve::graphics::FogVolume::setNoise | ( | float | amount, |
| float | scale, | ||
| int | seed | ||
| ) |
Configure deterministic world-space density variation.
- 参数
-
amount Blend from uniform density at 0 to full noise at 1. scale World-space noise frequency; values are clamped positive. seed Stable integer variation seed.
在文件 FogVolume.cpp 第 76 行定义.
◆ setPosition()
|
inline |
◆ setShape()
| void eve::graphics::FogVolume::setShape | ( | const std::string & | shape | ) |
◆ setSize()
| void eve::graphics::FogVolume::setSize | ( | float | x, |
| float | y, | ||
| float | z | ||
| ) |
Set full world-space dimensions; values are clamped positive.
在文件 FogVolume.cpp 第 56 行定义.
该类的文档由以下文件生成:
- src/modules/graphics/FogVolume.h
- src/modules/graphics/FogVolume.cpp