World-space analytic light copied during scene preparation. 更多...
#include <PathTracing.h>
Public 属性 | |
| PathLightKind | kind = PathLightKind::Point |
| glm::vec3 | position {0.f} |
| glm::vec3 | directionToLight {0.f, 0.f, -1.f} |
| glm::vec3 | strength {1.f} |
| glm::vec3 | beamDirection {0.f, 0.f, 1.f} |
| Finite nonzero emission direction for spot lights. | |
| float | cosOuter = 0.8f |
| Spot half-angle cosines, -1 <= outer <= inner <= 1. | |
| float | cosInner = 0.95f |
详细描述
World-space analytic light copied during scene preparation.
Point strength is RGB radiant intensity with inverse-square falloff. Directional strength is RGB irradiance perpendicular to directionToLight. All colors are linear; directionToLight must be finite and nonzero for directional lights. Spot strength has the same units as point strength on the beam axis. The beam points away from the source; angular attenuation is the square of the clamped linear ramp between outer and inner cone cosines. Equal cosines form a hard rim.
在文件 PathTracing.h 第 104 行定义.
类成员变量说明
◆ beamDirection
Finite nonzero emission direction for spot lights.
在文件 PathTracing.h 第 110 行定义.
◆ cosInner
| float eve::graphics::PathLight::cosInner = 0.95f |
在文件 PathTracing.h 第 112 行定义.
◆ cosOuter
| float eve::graphics::PathLight::cosOuter = 0.8f |
Spot half-angle cosines, -1 <= outer <= inner <= 1.
在文件 PathTracing.h 第 112 行定义.
◆ directionToLight
在文件 PathTracing.h 第 107 行定义.
◆ kind
| PathLightKind eve::graphics::PathLight::kind = PathLightKind::Point |
在文件 PathTracing.h 第 105 行定义.
被这些函数引用 eve::graphics::preparePathWorld().
◆ position
| glm::vec3 eve::graphics::PathLight::position {0.f} |
在文件 PathTracing.h 第 106 行定义.
◆ strength
| glm::vec3 eve::graphics::PathLight::strength {1.f} |
在文件 PathTracing.h 第 108 行定义.
该结构体的文档由以下文件生成:
- src/modules/graphics/PathTracing.h