载入中...
搜索中...
未找到
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()

glm::vec3 eve::graphics::cubemap_prefilter_detail::cosineSample ( float  x,
float  y,
const glm::vec3 &  n 
)
inline

Cosine sample.

Local.

Sqrt.

Vec 3.

Normalize.

在文件 CubemapPrefilter.h 第 140 行定义.

引用了 local, n, phi, radius, tangent, up, x , 以及 y.

被这些函数引用 eve::graphics::buildGgxCubemapMipChain().

◆ directionFaceUv()

void eve::graphics::cubemap_prefilter_detail::directionFaceUv ( const glm::vec3 &  d,
uint32_t &  face,
float &  u,
float &  v 
)
inline

Direction face uv.

在文件 CubemapPrefilter.h 第 35 行定义.

引用了 a, d, u , 以及 v.

被这些函数引用 sampleBase().

◆ faceDirection()

glm::vec3 eve::graphics::cubemap_prefilter_detail::faceDirection ( uint32_t  face,
float  u,
float  v 
)
inline

Face direction.

Normalize.

Normalize.

Normalize.

Normalize.

Normalize.

Normalize.

在文件 CubemapPrefilter.h 第 17 行定义.

引用了 u , 以及 v.

被这些函数引用 eve::graphics::buildGgxCubemapMipChain() , 以及 sampleBase().

◆ importanceSample()

glm::vec3 eve::graphics::cubemap_prefilter_detail::importanceSample ( float  x,
float  y,
const glm::vec3 &  n,
float  roughness 
)
inline

Importance sample.

H t.

Vec 3.

Normalize.

在文件 CubemapPrefilter.h 第 121 行定义.

引用了 a, n, phi, roughness, tangent, up, x , 以及 y.

被这些函数引用 eve::graphics::buildGgxCubemapMipChain().

◆ radicalInverse()

float eve::graphics::cubemap_prefilter_detail::radicalInverse ( uint32_t  bits)
inline

Radical inverse.

Float.

在文件 CubemapPrefilter.h 第 110 行定义.

被这些函数引用 eve::graphics::buildGgxCubemapMipChain().

◆ sampleBase()

glm::vec4 eve::graphics::cubemap_prefilter_detail::sampleBase ( const uint8_t *  faces,
uint32_t  size,
const glm::vec3 &  direction 
)
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.

被这些函数引用 eve::graphics::buildGgxCubemapMipChain().