Linear-light surface parameters for path tracing. 更多...
#include <PathTracing.h>
Public 属性 | |
| glm::vec3 | baseColor {1.f} |
| glm::vec3 | emission {0.f} |
| float | roughness = 1.f |
| float | metallic = 0.f |
| uint32_t | baseColorTexture = UINT32_MAX |
| float | opacity = 1.f |
| float | alphaCutoff = 0.5f |
| PathAlphaMode | alphaMode = PathAlphaMode::Opaque |
| uint32_t | metallicRoughnessTexture = UINT32_MAX |
| Linear data map: green multiplies roughness, blue multiplies metallic. | |
| uint32_t | emissionTexture = UINT32_MAX |
| Linear RGB multiplier of emission; native sRGB inputs are decoded during sampling. | |
| uint32_t | normalTexture = UINT32_MAX |
| Linear tangent-space XYZ normal map, decoded from [0,1] to [-1,1]. | |
| float | normalScale = 1.f |
| Finite signed multiplier of tangent-space normal X/Y before normalization. | |
详细描述
Linear-light surface parameters for path tracing.
Opacity multiplies texture alpha. Opaque ignores both; masked accepts coverage >= alphaCutoff. Blend samples coverage independently per ray, including shadows and indirect light.
在文件 PathTracing.h 第 20 行定义.
类成员变量说明
◆ alphaCutoff
| float eve::graphics::PathMaterial::alphaCutoff = 0.5f |
在文件 PathTracing.h 第 27 行定义.
◆ alphaMode
| PathAlphaMode eve::graphics::PathMaterial::alphaMode = PathAlphaMode::Opaque |
在文件 PathTracing.h 第 28 行定义.
◆ baseColor
| glm::vec3 eve::graphics::PathMaterial::baseColor {1.f} |
在文件 PathTracing.h 第 21 行定义.
被这些函数引用 eve::graphics::preparePathWorld().
◆ baseColorTexture
| uint32_t eve::graphics::PathMaterial::baseColorTexture = UINT32_MAX |
在文件 PathTracing.h 第 25 行定义.
◆ emission
| glm::vec3 eve::graphics::PathMaterial::emission {0.f} |
在文件 PathTracing.h 第 22 行定义.
◆ emissionTexture
| uint32_t eve::graphics::PathMaterial::emissionTexture = UINT32_MAX |
Linear RGB multiplier of emission; native sRGB inputs are decoded during sampling.
在文件 PathTracing.h 第 32 行定义.
◆ metallic
| float eve::graphics::PathMaterial::metallic = 0.f |
在文件 PathTracing.h 第 24 行定义.
◆ metallicRoughnessTexture
| uint32_t eve::graphics::PathMaterial::metallicRoughnessTexture = UINT32_MAX |
Linear data map: green multiplies roughness, blue multiplies metallic.
在文件 PathTracing.h 第 30 行定义.
◆ normalScale
| float eve::graphics::PathMaterial::normalScale = 1.f |
Finite signed multiplier of tangent-space normal X/Y before normalization.
在文件 PathTracing.h 第 36 行定义.
◆ normalTexture
| uint32_t eve::graphics::PathMaterial::normalTexture = UINT32_MAX |
Linear tangent-space XYZ normal map, decoded from [0,1] to [-1,1].
在文件 PathTracing.h 第 34 行定义.
◆ opacity
| float eve::graphics::PathMaterial::opacity = 1.f |
在文件 PathTracing.h 第 26 行定义.
◆ roughness
| float eve::graphics::PathMaterial::roughness = 1.f |
在文件 PathTracing.h 第 23 行定义.
该结构体的文档由以下文件生成:
- src/modules/graphics/PathTracing.h