diff options
author | Ivan Perevala <ivpe> | 2020-11-13 10:24:52 +0300 |
---|---|---|
committer | Jeroen Bakker <jeroen@blender.org> | 2020-11-13 10:26:27 +0300 |
commit | 4efd87d56b65e4fb5c10de399ab15ef59a9c305f (patch) | |
tree | 7c75d20c4a88502484e7b1322495e617864a1700 /source/blender/draw/engines/overlay | |
parent | b35b8c884909307bff2f71ce766621144fbc85a1 (diff) |
UI: Adaptive HDRI preview resolution
HDRI preview should have resolution dependent on dpi, viewport scale and HDRI gizmo size.
This patch uses a LOD to render a more round sphere.
Reviewed By: Jeroen Bakker
Differential Revision: https://developer.blender.org/D9382
Diffstat (limited to 'source/blender/draw/engines/overlay')
-rw-r--r-- | source/blender/draw/engines/overlay/overlay_extra.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/draw/engines/overlay/overlay_extra.c b/source/blender/draw/engines/overlay/overlay_extra.c index adb0dc22e16..4ca7ee42f8d 100644 --- a/source/blender/draw/engines/overlay/overlay_extra.c +++ b/source/blender/draw/engines/overlay/overlay_extra.c @@ -128,7 +128,7 @@ void OVERLAY_extra_cache_init(OVERLAY_Data *vedata) cb->empty_plain_axes = BUF_INSTANCE(grp_sub, format, DRW_cache_plain_axes_get()); cb->empty_single_arrow = BUF_INSTANCE(grp_sub, format, DRW_cache_single_arrow_get()); cb->empty_sphere = BUF_INSTANCE(grp_sub, format, DRW_cache_empty_sphere_get()); - cb->empty_sphere_solid = BUF_INSTANCE(grp_sub, format, DRW_cache_sphere_get()); + cb->empty_sphere_solid = BUF_INSTANCE(grp_sub, format, DRW_cache_sphere_get(DRW_LOD_LOW)); cb->field_cone_limit = BUF_INSTANCE(grp_sub, format, DRW_cache_field_cone_limit_get()); cb->field_curve = BUF_INSTANCE(grp_sub, format, DRW_cache_field_curve_get()); cb->field_force = BUF_INSTANCE(grp_sub, format, DRW_cache_field_force_get()); |