Struct Info
Ray
光线,包含光线的原点和方向。
Qualifier and Type
Field and Description
float
origin[3]
光线的原点坐标。
tmin
光线原点和最近交点的距离,不需要初始化。
dir[3]
光线的方向向量。
tmax
光线原点和最远交点的距离,不需要初始化。