aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorladevieq <ladevie.quentin@gmail.com>2021-01-01 23:30:43 +0100
committerladevieq <ladevie.quentin@gmail.com>2021-01-01 23:30:43 +0100
commit10ee4be624e665db9ad83c6bf877c6c5b5e3d443 (patch)
treeebeb102e599531cdd04c2bf769ae80406e177a02 /include
parentca7f65d7cc2d82ce1bd752785fd100a1855b4dc3 (diff)
Add multi sampling
Diffstat (limited to 'include')
-rw-r--r--include/color.hpp2
-rw-r--r--include/vk-renderer.hpp4
2 files changed, 4 insertions, 2 deletions
diff --git a/include/color.hpp b/include/color.hpp
index 34f739a..f300e76 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, uint32_t samples_per_pixel);
+void write_color(std::ostream& out, const color& pixel_color);
#endif // !__COLOR_HPP_
diff --git a/include/vk-renderer.hpp b/include/vk-renderer.hpp
index ca3e182..b1f8d3f 100644
--- a/include/vk-renderer.hpp
+++ b/include/vk-renderer.hpp
@@ -11,10 +11,12 @@ struct input_data {
color ground_color;
vec3 camera_pos;
+ uint32_t samples_per_pixel;
float viewport_width;
float viewport_height;
float proj_plane_distance;
- float pad;
+
+ float random_numbers[200];
struct sphere {
vec3 position;