mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
HoloLens: Reversed logic for determining face culling mode when exporting meshes
This commit is contained in:
parent
5c24153646
commit
7588c0d2ae
@ -139,13 +139,16 @@ std::vector<VdeExportPart> RicHoloLensExportImpl::partsForExport(const RimGridVi
|
||||
visiblePart->effect()->renderStateOfType(cvf::RenderState::CULL_FACE));
|
||||
if (renderStateCullFace)
|
||||
{
|
||||
// The logic below that inverts the culling mode simply does not make sense. We should be able to just utilize the cull mode set
|
||||
// in the render state. The proper solution is probably to put more effort into correctly determining the winding in further up
|
||||
// in this function, but currently there is no clear way to accomplish this.
|
||||
if (renderStateCullFace->mode() == cvf::RenderStateCullFace::BACK)
|
||||
{
|
||||
exportPart.setCullFace(VdeExportPart::CF_BACK);
|
||||
exportPart.setCullFace(VdeExportPart::CF_FRONT);
|
||||
}
|
||||
else if (renderStateCullFace->mode() == cvf::RenderStateCullFace::FRONT)
|
||||
{
|
||||
exportPart.setCullFace(VdeExportPart::CF_FRONT);
|
||||
exportPart.setCullFace(VdeExportPart::CF_BACK);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user