Nested world-space volume grids for stable large-range participating media. 更多...
#include <AtmosphereClipmap.h>
Public 成员函数 | |
| void | configure (int levelCount, int resolution, float firstExtent) |
| Allocate nested cubic levels and center them at the origin. | |
| void | updateCenter (const glm::vec3 &cameraPosition) |
| Snap all levels around a new camera position. | |
| int | getLevelCount () const |
| Returns the level count. | |
| AtmosphereClipmapLevel & | getLevel (int level) |
| Returns the level. | |
| const AtmosphereClipmapLevel & | getLevel (int level) const |
| Returns the level. | |
| int | levelForPosition (const glm::vec3 &worldPosition) const |
| Select the finest level containing a world position, or -1. | |
| FogFroxel | sample (const glm::vec3 &worldPosition) const |
| Sample raw media from the finest containing level. | |
详细描述
Nested world-space volume grids for stable large-range participating media.
Level zero has the finest voxels. Each following level doubles its world extent. Centers snap to whole voxels so sub-voxel camera movement does not resample media.
在文件 AtmosphereClipmap.h 第 25 行定义.
成员函数说明
◆ configure()
| void eve::graphics::AtmosphereClipmap::configure | ( | int | levelCount, |
| int | resolution, | ||
| float | firstExtent | ||
| ) |
Allocate nested cubic levels and center them at the origin.
在文件 AtmosphereClipmap.cpp 第 10 行定义.
◆ getLevel() [1/2]
| AtmosphereClipmapLevel & eve::graphics::AtmosphereClipmap::getLevel | ( | int | level | ) |
◆ getLevel() [2/2]
| const AtmosphereClipmapLevel & eve::graphics::AtmosphereClipmap::getLevel | ( | int | level | ) | const |
◆ getLevelCount()
|
inline |
Returns the level count.
在文件 AtmosphereClipmap.h 第 33 行定义.
◆ levelForPosition()
| int eve::graphics::AtmosphereClipmap::levelForPosition | ( | const glm::vec3 & | worldPosition | ) | const |
Select the finest level containing a world position, or -1.
在文件 AtmosphereClipmap.cpp 第 39 行定义.
被这些函数引用 sample().
◆ sample()
| FogFroxel eve::graphics::AtmosphereClipmap::sample | ( | const glm::vec3 & | worldPosition | ) | const |
Sample raw media from the finest containing level.
在文件 AtmosphereClipmap.cpp 第 48 行定义.
引用了 index, level , 以及 levelForPosition().
◆ updateCenter()
| void eve::graphics::AtmosphereClipmap::updateCenter | ( | const glm::vec3 & | cameraPosition | ) |
该类的文档由以下文件生成:
- src/modules/graphics/AtmosphereClipmap.h
- src/modules/graphics/AtmosphereClipmap.cpp