From 25ac4fd14409a0d82bbaaaf4018674c3bdd46b03 Mon Sep 17 00:00:00 2001 From: ladevieq Date: Sun, 20 Dec 2020 22:55:01 +0100 Subject: Multi sampled pixels --- include/color.hpp | 2 +- include/vec3.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/color.hpp b/include/color.hpp index f300e76..34f739a 100644 --- a/include/color.hpp +++ b/include/color.hpp @@ -5,6 +5,6 @@ #include "vec3.hpp" -void write_color(std::ostream& out, const color& pixel_color); +void write_color(std::ostream& out, const color& pixel_color, uint32_t samples_per_pixel); #endif // !__COLOR_HPP_ diff --git a/include/vec3.hpp b/include/vec3.hpp index e658e71..4ab446d 100644 --- a/include/vec3.hpp +++ b/include/vec3.hpp @@ -12,7 +12,7 @@ class vec3 { vec3 operator-() const; - vec3& operator+=(vec3& vec); + vec3& operator+=(vec3 vec); vec3& operator*=(double scale); -- cgit v1.3