Skip to content

Commit

Permalink
Set colorbuffer clear color to fully transparent
Browse files Browse the repository at this point in the history
This changes the colorbuffer's "background" (or clear-) color from white to fully transparent. I think this is the better default behaviour.
  • Loading branch information
patrikhuber committed Aug 1, 2020
1 parent 1e8a875 commit fc1465e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/eos/render/Rasterizer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ class Rasterizer
void clear_buffers()
{
colorbuffer = eos::core::image::constant(viewport_height, viewport_width,
eos::core::Pixel<std::uint8_t, 4>(255, 255, 255, 255));
eos::core::Pixel<std::uint8_t, 4>(255, 255, 255, 0));
depthbuffer =
eos::core::image::constant(viewport_height, viewport_width, std::numeric_limits<double>::max());
};
Expand Down

0 comments on commit fc1465e

Please sign in to comment.