mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-09-13 14:27:08 +03:00
0026434: Visualization - Textured objects should have priority over the environment mapping.
Add handle on environment texture in OpenGl_Workspace. Add a new parameter UseEnvironmentTexture to the Graphic3d_ZLayerSettings. OSD layers don't use environment texture by default. zbuffertrihedron doesn't use environment texture. vzlayer can enable/disable environment texture mappping. Delete unnecessary files Graphic3d_TypeOfSurfaceDetail.hxx and V3d_TypeOfSurface.hxx. Delete functions SurfaceDetailType and SetSurfaceDetailType functions from Graphic3d_CView. Delete functions SurfaceDetailState and UpdateSurfaceDetailStateTo from OpenGl_ShaderManager. Delete class OpenGl_SurfaceDetailState. Delete functions SurfaceDetailType and SetSurfaceDetailType from OpenGl_View. Delete functions SetSurfaceDetail and SurfaceDetail() from V3d_View. Delete functions SetDefaultSurfaceDetail and DefaultSurfaceDetail from V3d_Viewer. Delete draw command VSetTextureMode. Add description in dox.
This commit is contained in:
@@ -839,11 +839,6 @@ static Standard_Integer meshcolors( Draw_Interpretor& di,
|
||||
aBuilder->SetInvalidColor(Quantity_NOC_BLACK);
|
||||
aBuilder->SetTextureCoords(aScaleMap);
|
||||
aMesh->AddBuilder(aBuilder, Standard_True);
|
||||
|
||||
//set viewer to display texures
|
||||
const Handle(V3d_Viewer)& aViewer = anIC->CurrentViewer();
|
||||
for (aViewer->InitActiveViews(); aViewer->MoreActiveViews(); aViewer->NextActiveViews())
|
||||
aViewer->ActiveView()->SetSurfaceDetail(V3d_TEX_ALL);
|
||||
}
|
||||
|
||||
aMesh->GetDrawer()->SetBoolean ( MeshVS_DA_ColorReflection, Standard_Boolean(aReflection) );
|
||||
|
Reference in New Issue
Block a user