Skip to content

Commit

Permalink
Gui: change shadow draw style default settings
Browse files Browse the repository at this point in the history
  • Loading branch information
realthunder committed May 19, 2020
1 parent 087f3fb commit e02e861
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Gui/View3DInventorViewer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3733,7 +3733,7 @@ void View3DInventorViewer::updateShadowGround(const SbBox3f &box)
z = pla.getPosition().z;
pla = Base::Placement();
} else {
z = center[2]-z/2;
z = center[2]-z/2-1;
}
SbVec3f coords[4] = {
{center[0]-width, center[1]-length, z},
Expand Down
6 changes: 3 additions & 3 deletions src/Gui/ViewParams.h
Original file line number Diff line number Diff line change
Expand Up @@ -119,16 +119,16 @@ class GuiExport ViewParams: public ParameterGrp::ObserverType {
FC_VIEW_PARAM(HiddenLineOverrideBackground,bool,Bool,false) \
FC_VIEW_PARAM(HiddenLineShaded, bool, Bool, false) \
FC_VIEW_PARAM(StatusMessageTimeout, int, Int, 5000) \
FC_VIEW_PARAM(ShadowFlatLines, bool, Bool, false) \
FC_VIEW_PARAM(ShadowFlatLines, bool, Bool, true) \
FC_VIEW_PARAM(ShadowSpotLight, bool, Bool, false) \
FC_VIEW_PARAM(ShadowLightIntensity, double, Float, 0.8) \
FC_VIEW_PARAM(ShadowLightDirectionX, double, Float, -1.0) \
FC_VIEW_PARAM(ShadowLightDirectionY, double, Float, -1.0) \
FC_VIEW_PARAM(ShadowLightDirectionZ, double, Float, -1.0) \
FC_VIEW_PARAM(ShadowLightColor, unsigned long, Unsigned, 0xffffffff) \
FC_VIEW_PARAM(ShadowLightColor, unsigned long, Unsigned, 0xf0fdffff) \
FC_VIEW_PARAM(ShadowShowGround, bool, Bool, true) \
FC_VIEW_PARAM(ShadowGroundScale, double, Float, 2.0) \
FC_VIEW_PARAM(ShadowGroundColor, unsigned long, Unsigned, 0xffffffff) \
FC_VIEW_PARAM(ShadowGroundColor, unsigned long, Unsigned, 0x7d7d7dff) \
FC_VIEW_PARAM(ShadowGroundShininess, double, Float, 0.8) \
FC_VIEW_PARAM(ShadowExtraRedraw, bool, Bool, true) \

Expand Down

0 comments on commit e02e861

Please sign in to comment.