载入中...
搜索中...
未找到
eve::graphics::cubemap_prefilter_detail 命名空间参考
函数 | |
| glm::vec3 | faceDirection (uint32_t face, float u, float v) |
| Face direction. | |
| void | directionFaceUv (const glm::vec3 &d, uint32_t &face, float &u, float &v) |
| Direction face uv. | |
| glm::vec4 | sampleBase (const uint8_t *faces, uint32_t size, const glm::vec3 &direction) |
| Sample base. | |
| float | radicalInverse (uint32_t bits) |
| Radical inverse. | |
| glm::vec3 | importanceSample (float x, float y, const glm::vec3 &n, float roughness) |
| Importance sample. | |
| glm::vec3 | cosineSample (float x, float y, const glm::vec3 &n) |
| Cosine sample. | |
函数说明
◆ cosineSample()
|
inline |
◆ directionFaceUv()
|
inline |
◆ faceDirection()
|
inline |
Face direction.
Normalize.
Normalize.
Normalize.
Normalize.
Normalize.
Normalize.
在文件 CubemapPrefilter.h 第 17 行定义.
被这些函数引用 eve::graphics::buildGgxCubemapMipChain() , 以及 sampleBase().
◆ importanceSample()
|
inline |
◆ radicalInverse()
|
inline |
◆ sampleBase()
|
inline |
Sample base.
Direction face uv.
Direction face uv.
Int.
Int.
Vec 4.
Mix.
Mix.
在文件 CubemapPrefilter.h 第 69 行定义.
引用了 direction, directionFaceUv(), faceDirection(), px, py, size, u, v, x , 以及 y.