refactoring/cleanups
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user