refactoring/cleanups

This commit is contained in:
2018-07-30 20:56:17 +02:00
parent 9a07790ec6
commit a9fcb77675
23 changed files with 276 additions and 247 deletions

View File

@@ -331,6 +331,8 @@ void MapView3D::draw() {
static RenderSettings rs = RenderSettings(new Shader(), this);
const Point3 c = center - floorplanRendererModel->getBBox().getCenter();
// view
QMatrix4x4 V;
@@ -339,7 +341,7 @@ void MapView3D::draw() {
V.rotate(rot.x, 1.0, 0.0, 0.0);
V.rotate(rot.y, 0.0, 1.0, 0.0);
V.rotate(rot.z, 0.0, 0.0, 1.0);
V.translate(center.x, center.y, center.z);
V.translate(c.x, c.y, c.z);
float farPlane = 200; // TODO