Esempio n. 1
0
Ray ThinLens::GenerateRay(const Vec2f& uv, float time) {
    Vec3f Q = _FocalPlanePoint(uv);
    return Ray(Vec3f::Zero(), Q.GetNormalized(), time);
}
Esempio n. 2
0
Ray PinholeLens::GenerateRay(const Vec2f& uv, float time) {
    Vec3f Q = _ImagePlanePoint(uv);
    return Ray(Vec3f::Zero(), Q.GetNormalized(), time);
}