[Bf-blender-cvs] [423619fd3d6] xr-actions-D9124: Increase line width for controllers / raycast

Peter Kim noreply at git.blender.org
Fri Nov 13 17:47:51 CET 2020


Commit: 423619fd3d66a0162be39108ed302d8742e0a701
Author: Peter Kim
Date:   Sat Nov 14 01:10:31 2020 +0900
Branches: xr-actions-D9124
https://developer.blender.org/rB423619fd3d66a0162be39108ed302d8742e0a701

Increase line width for controllers / raycast

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

M	source/blender/windowmanager/xr/intern/wm_xr_draw.c
M	source/blender/windowmanager/xr/intern/wm_xr_operators.c

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

diff --git a/source/blender/windowmanager/xr/intern/wm_xr_draw.c b/source/blender/windowmanager/xr/intern/wm_xr_draw.c
index 9e12d063332..527741ea6d3 100644
--- a/source/blender/windowmanager/xr/intern/wm_xr_draw.c
+++ b/source/blender/windowmanager/xr/intern/wm_xr_draw.c
@@ -184,7 +184,7 @@ void wm_xr_draw_controllers(const bContext *UNUSED(C), ARegion *UNUSED(region),
    * with actual controller geometry. */
   GPUVertFormat *format = immVertexFormat();
   uint pos = GPU_vertformat_attr_add(format, "pos", GPU_COMP_F32, 3, GPU_FETCH_FLOAT);
-  GPU_line_width(2.0f);
+  GPU_line_width(3.0f);
 
   immBindBuiltinProgram(GPU_SHADER_3D_UNIFORM_COLOR);
 
diff --git a/source/blender/windowmanager/xr/intern/wm_xr_operators.c b/source/blender/windowmanager/xr/intern/wm_xr_operators.c
index 5a644470a42..20ad5e6eb9b 100644
--- a/source/blender/windowmanager/xr/intern/wm_xr_operators.c
+++ b/source/blender/windowmanager/xr/intern/wm_xr_operators.c
@@ -183,12 +183,12 @@ static void wm_xr_select_raycast_draw(const bContext *UNUSED(C),
 
   GPUVertFormat *format = immVertexFormat();
   uint pos = GPU_vertformat_attr_add(format, "pos", GPU_COMP_F32, 3, GPU_FETCH_FLOAT);
-  GPU_line_width(2.0f);
+  GPU_line_width(3.0f);
 
   immBindBuiltinProgram(GPU_SHADER_3D_UNIFORM_COLOR);
 
   immBegin(GPU_PRIM_LINES, 2);
-  immUniformColor4f(0.35f, 0.35f, 1.0f, 1.0f);
+  immUniformColor4f(0.863f, 0.0f, 0.545f, 1.0f);
   immVertex3fv(pos, data->origin);
   immVertex3fv(pos, data->end);
   immEnd();



More information about the Bf-blender-cvs mailing list