135 v2.setCoordinate (localx, v2[localx] + c1[i].x2()); |
135 v2.setCoordinate (localx, v2[localx] + c1[i].x2()); |
136 v2.setCoordinate (localy, v2[localy] + c1[i].y2()); |
136 v2.setCoordinate (localy, v2[localy] + c1[i].y2()); |
137 v3.setCoordinate (localx, v3[localx] + c1[i].x1()); |
137 v3.setCoordinate (localx, v3[localx] + c1[i].x1()); |
138 v3.setCoordinate (localy, v3[localy] + c1[i].y1()); |
138 v3.setCoordinate (localy, v3[localy] + c1[i].y1()); |
139 |
139 |
140 LDQuad* quad = model.emplace<LDQuad>(v0, v1, v2, v3); |
140 LDQuadrilateral* quad = model.emplace<LDQuadrilateral>(v0, v1, v2, v3); |
141 quad->setColor(MainColor); |
141 quad->setColor(MainColor); |
142 |
142 |
143 // Ensure the quads always are BFC-front towards the camera |
143 // Ensure the quads always are BFC-front towards the camera |
144 if (static_cast<int>(renderer()->camera()) % 3 <= 0) |
144 if (static_cast<int>(renderer()->camera()) % 3 <= 0) |
145 quad->invert(); |
145 quad->invert(); |