Skip to content

Book 1 Chapter 13.2 dev-major: Generating Sample Rays #1076

@hollasch

Description

@hollasch

Discussed in #1075

Originally posted by LollipopFt September 25, 2022

return ray(origin, lower_left_corner + s*horizontal + t*vertical - origin);

was changed to this:
return ray(
origin + offset,
lower_left_corner + s*horizontal + t*vertical - origin - offset
);

this flipped the image on the vertical axis such that it is upside down. changing the code to

            return ray(
                origin + offset,
-                lower_left_corner + s*horizontal + t*vertical - origin - offset
+                lower_left_corner + s*horizontal + (1-t)*vertical - origin - offset
            );

fixed it.
is it just me?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions