mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 19:59:28 +02:00
Fix orientation of rectangle3d overlays to match other 3D overlays
This commit is contained in:
parent
6483df69a4
commit
7f7cba8a1b
1 changed files with 2 additions and 2 deletions
|
@ -70,8 +70,8 @@ void Rectangle3DOverlay::render(RenderArgs* args) {
|
||||||
|
|
||||||
// for our overlay, is solid means we draw a solid "filled" rectangle otherwise we just draw a border line...
|
// for our overlay, is solid means we draw a solid "filled" rectangle otherwise we just draw a border line...
|
||||||
if (getIsSolid()) {
|
if (getIsSolid()) {
|
||||||
glm::vec3 topLeft(-halfDimensions.x, 0.0f, -halfDimensions.y);
|
glm::vec3 topLeft(-halfDimensions.x, -halfDimensions.y, 0.0f);
|
||||||
glm::vec3 bottomRight(halfDimensions.x, 0.0f, halfDimensions.y);
|
glm::vec3 bottomRight(halfDimensions.x, halfDimensions.y, 0.0f);
|
||||||
DependencyManager::get<GeometryCache>()->renderQuad(topLeft, bottomRight, rectangleColor);
|
DependencyManager::get<GeometryCache>()->renderQuad(topLeft, bottomRight, rectangleColor);
|
||||||
} else {
|
} else {
|
||||||
if (getIsDashedLine()) {
|
if (getIsDashedLine()) {
|
||||||
|
|
Loading…
Reference in a new issue