viewport_command to int coord

This commit is contained in:
2020-01-27 03:56:53 +07:00
parent ad81e7e5df
commit 3c58d83d8c
12 changed files with 28 additions and 36 deletions

View File

@@ -80,8 +80,6 @@ namespace
owner.for_joined_components<camera>(
[](const ecs::const_entity&, camera& cam){
if ( !cam.target() ) {
cam.viewport(
the<window>().framebuffer_size());
cam.projection(math::make_orthogonal_lh_matrix4(
the<window>().real_size().cast_to<f32>(), 0.f, 1000.f));
}