Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Eisel <eiseljulian@gmail.com>2019-07-24 17:41:46 +0300
committerJulian Eisel <eiseljulian@gmail.com>2019-07-24 17:41:46 +0300
commit091cc94379a2976176f0ae93721cfb2239a60e55 (patch)
tree892d9884448b06ab476b987a68052b91ee7c0c03 /source/blender/windowmanager/intern
parentfc31be5ab031a106bffe4f072dda0512d0e0f629 (diff)
Use fixed lighting, don't make it rotate with view rotation
Diffstat (limited to 'source/blender/windowmanager/intern')
-rw-r--r--source/blender/windowmanager/intern/wm_xr.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/windowmanager/intern/wm_xr.c b/source/blender/windowmanager/intern/wm_xr.c
index e27c83ad6ca..4f7d2430ba9 100644
--- a/source/blender/windowmanager/intern/wm_xr.c
+++ b/source/blender/windowmanager/intern/wm_xr.c
@@ -306,6 +306,8 @@ static GHOST_ContextHandle wm_xr_draw_view(const GHOST_XrDrawViewInfo *draw_view
glClear(GL_DEPTH_BUFFER_BIT);
BKE_screen_view3d_shading_init(&shading);
+ shading.flag |= V3D_SHADING_WORLD_ORIENTATION;
+ shading.background_type = V3D_SHADING_BACKGROUND_WORLD;
ED_view3d_draw_offscreen_simple(CTX_data_depsgraph(C),
CTX_data_scene(C),
&shading,