[Bf-blender-cvs] [8557997e815] soc-2019-openxr: Disable specular highlights in the VR viewport

Julian Eisel noreply at git.blender.org
Thu Aug 8 00:04:15 CEST 2019


Commit: 8557997e8156c1b0fb9b89fbae60e1118d63d6c9
Author: Julian Eisel
Date:   Wed Aug 7 23:05:24 2019 +0200
Branches: soc-2019-openxr
https://developer.blender.org/rB8557997e8156c1b0fb9b89fbae60e1118d63d6c9

Disable specular highlights in the VR viewport

===================================================================

M	source/blender/windowmanager/intern/wm_xr.c

===================================================================

diff --git a/source/blender/windowmanager/intern/wm_xr.c b/source/blender/windowmanager/intern/wm_xr.c
index 82d17b6cd6e..8262e76b91e 100644
--- a/source/blender/windowmanager/intern/wm_xr.c
+++ b/source/blender/windowmanager/intern/wm_xr.c
@@ -308,6 +308,7 @@ static GHOST_ContextHandle wm_xr_draw_view(const GHOST_XrDrawViewInfo *draw_view
 
   BKE_screen_view3d_shading_init(&shading);
   shading.flag |= V3D_SHADING_WORLD_ORIENTATION;
+  shading.flag &= ~V3D_SHADING_SPECULAR_HIGHLIGHT;
   shading.background_type = V3D_SHADING_BACKGROUND_WORLD;
   ED_view3d_draw_offscreen_simple(CTX_data_ensure_evaluated_depsgraph(C),
                                   CTX_data_scene(C),



More information about the Bf-blender-cvs mailing list