more fixes for matrix transforms ... projections should be working now

This commit is contained in:
Hartmut Seichter 2019-02-19 22:30:17 +01:00
parent 9db2490989
commit d2de6d410f
4 changed files with 34 additions and 32 deletions

View file

@ -147,15 +147,18 @@ struct triangle_renderer
glFrontFace(GL_CCW);
#endif
#if 0
auto proj_mat = matrix_transform<float>::orthographic_projection(1.3,1.0,
0.2f,100.f);
#else
auto proj_mat = matrix_transform<float>::perspective_projection(deg_to_rad(60.f),
1.3f,
0.2f,1000.f);
// matrix4x4f proj_mat = matrix_transform<float>::perspective_projection(deg_to_rad(33.0f),
// 1.3f,
// 0.2f,1000.f);
#endif
// highly inefficient - should be cached -
shader_p.set("input_color",col);
shader_p.set("model",model_mat);