Lights #19

Merged
neoq merged 49 commits from lights into master 2019-07-11 18:41:10 +02:00
neoq commented 2019-07-11 18:00:49 +02:00 (Migrated from github.com)

Added a Light material that emits bright colors like the sky and illuminates it's surroundings.
In addition I refactored the architecture greatly. I did that by adding a Raytracer class with an incredibly simple interface which stores everything needed for rendering a scene.
Some more changes:

  • Make use of neop::global::rne to simplify rng by a massive deal and prevent dataraces on the rne as it is thread_local. And yes, this is the very best and only feasible approach.
  • Remove my homemade naive and filthy parallelism in favor of c++17 parallel for loop #5.
  • Made Color class as a necessity to be able to represent arbitrarily bright colors.
  • decoupled the raytracer completely from sfml. I only use it to save and display the result.
Added a Light material that emits bright colors like the sky and illuminates it's surroundings. In addition I refactored the architecture greatly. I did that by adding a Raytracer class with an incredibly simple interface which stores everything needed for rendering a scene. Some more changes: - Make use of `neop::global::rne` to simplify rng by a massive deal and prevent dataraces on the rne as it is thread_local. And yes, this is the very best and only feasible approach. - Remove my homemade naive and filthy parallelism in favor of c++17 parallel for loop #5. - Made Color class as a necessity to be able to represent arbitrarily bright colors. - decoupled the raytracer completely from sfml. I only use it to save and display the result.
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
neop/raytracer!19
No description provided.