Do not cull mjGEOM_TRIANGLE.
PiperOrigin-RevId: 789723631 Change-Id: I8a5aaa78a9fe63458c07b823c7550846c14413b1
This commit is contained in:
committed by
Copybara-Service
parent
3d537c85ef
commit
80befd64ae
@@ -911,12 +911,10 @@ void mjv_addGeoms(const mjModel* m, mjData* d, const mjvOption* vopt,
|
||||
}
|
||||
|
||||
// draw triangles, one per side
|
||||
for (int j = 0; j < 2; j++) {
|
||||
START
|
||||
makeTriangle(thisgeom, pos[0], pos[j ? 1 : 2], pos[j ? 2 : 1], rgba);
|
||||
thisgeom->objid = id;
|
||||
FINISH
|
||||
}
|
||||
START
|
||||
makeTriangle(thisgeom, pos[0], pos[1], pos[2], rgba);
|
||||
thisgeom->objid = id;
|
||||
FINISH
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user