mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-19 13:40:49 +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.
This commit is contained in:
@@ -971,3 +971,11 @@ Zoom persistent selection introduces a new structure *Graphic3d_TransformPers* f
|
||||
* Transformation matrix utilities from *OpenGl_Utils* namespace have been moved to *Graphic3d_TransformUtils* and *Graphic3d_TransformUtils.hxx* header respectively.
|
||||
* Matrix stack utilities from *OpenGl_Utils* namespace have been moved to *OpenGl_MatrixStack* class and *OpenGl_MatrixStack.hxx* header respectively.
|
||||
* *OpenGl_View* methods *Begin/EndTransformPersistence* have been removed. Please, use *Graphic3d_TransformPers::Apply()* instead to apply persistence to perspective and world-view projection matrices.
|
||||
Applications that use gp_Quaternion to convert Yaw-Pitch-Roll angles (or other intrinsic Tait-Bryan sequences) may need to be updated to take this change into account.
|
||||
|
||||
|
||||
@subsection Correction of texture mapping of objects
|
||||
|
||||
Interaction of texture and environment texture is fixed. Textured objects have priority over the environment mapping.
|
||||
Redundant enumerations V3d_TypeOfSurface and Graphic3d_TypeOfSurface, class OpenGl_SurfaceDetailState, corresponding methods from Graphic3d_CView, OpenGl_ShaderManager, OpenGl_View, V3d_View, V3d_Viewer are deleted.
|
||||
Draw command VSetTextureMode is deleted.
|
||||
|
Reference in New Issue
Block a user