summaryrefslogtreecommitdiff
path: root/viewport.h
AgeCommit message (Collapse)Author
2022-04-20Add vup (vector up), which controls the rotation of a camera (viewport). If ↵Keuin
vup is set to {0, 1, 0} (y=1), the camera should behave exactly the same as in previous versions.
2022-04-20Assert screen and image are of the same aspect in aa_viewport::aa_viewport ↵Keuin
and basic_viewport::basic_viewport.
2022-04-20Code refactor: make basic_viewport and aa_viewport no longer a child class. ↵Keuin
Move data into classes. Code refactor: make threading.h more specific, reducing redundant data copies in memory. Code refactor: make camera parameters more clear and well-defined in viewport.h, ready to extend camera flexibility.
2022-04-16Move trace logging to tracelog.h.Keuin
Pixel-wise, comprehensive, beautiful trace logging.
2022-04-14Make hitlist<T> no longer a generic class (but hitlist::color<T>(...) is now ↵Keuin
a generic member function).
2022-04-14Remove viewport8b and basic_viewport8b.Keuin
2022-04-13Global diffuse lighting. (gamma not corrected)Keuin
Some operations on pixel<T>. Make ray3 support copy semantic. Fix vec3 operands does not filter out vec3-vec3 as parameters. random_uv_gen generating random unit vectors.
2022-04-13Use basic_viewport8b if antialiasing is not enabled.Keuin
2022-04-13Antialiasing. (not parallelized)Keuin
2022-04-13Simplify bias_ctx's constructor.Keuin
2022-04-13Generalize hitlist and basic_viewport. (HDR in the future)Keuin
2022-04-13Rename viewport to basic_viewport.Keuin
Extract interface viewport.
2022-04-12Refactor: move hitlist, object, sphere, viewport into single files.Keuin
Add bias_ctx for setting sub-pixel sampling bias.