This commit is contained in:
2018-11-12 06:28:00 +07:00
parent e0e06dde9e
commit bb3245cb9e
8 changed files with 96 additions and 33 deletions

View File

@@ -220,7 +220,10 @@ namespace
the<render>().execute(render::command_block<64>()
.add_command(render::target_command(nullptr))
.add_command(render::viewport_command(the<window>().real_size()))
.add_command(render::clear_command()
.color_value(color::blue()))
.add_command(render::viewport_command(the<window>().real_size())
.scissor_rect(make_rect(v2u{100u}, the<window>().real_size() - 200u)))
.add_command(render::clear_command()
.color_value({1.f, 0.4f, 0.f, 1.f}))
.add_command(render::draw_command(material_, geometry_, rt_props_))