diff options
author | Jeroen Bakker <j.bakker@atmind.nl> | 2018-06-27 13:55:49 +0300 |
---|---|---|
committer | Jeroen Bakker <j.bakker@atmind.nl> | 2018-06-27 13:59:01 +0300 |
commit | 20b8e1d8f1ebc4091f59e9bca32264717849a39b (patch) | |
tree | 09cabce715e9cdd0b09308a826e6b1d3d32f203a /source/blender/makesdna | |
parent | cf2dcd57c0a6211de22abbf2c40a6eed80d77416 (diff) |
Workbench: Added a quality slider for the viewport
Currently only attached to the Anti Aliasing of the solid mode of the
viewport. But eventually we could add other options here. Quality
setting can be found in the System tab of the userpref.
The slider goes from No Antialiasing (0.0 - 0.1) to FXAA (0.1 - 0.25) to
TAA8 (0.25 - 0.6) to TAA16 (0.6 - 0.8) to TAA32 (0.8 - 1.0)
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r-- | source/blender/makesdna/DNA_userdef_types.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/source/blender/makesdna/DNA_userdef_types.h b/source/blender/makesdna/DNA_userdef_types.h index 9cdb34e0f14..3ba9e4fb3db 100644 --- a/source/blender/makesdna/DNA_userdef_types.h +++ b/source/blender/makesdna/DNA_userdef_types.h @@ -48,6 +48,11 @@ struct ColorBand; #define MAX_STYLE_NAME 64 +#define GPU_VIEWPORT_QUALITY_FXAA 0.10f +#define GPU_VIEWPORT_QUALITY_TAA8 0.25f +#define GPU_VIEWPORT_QUALITY_TAA16 0.6f +#define GPU_VIEWPORT_QUALITY_TAA32 0.8f + /* default offered by Blender. * uiFont.uifont_id */ typedef enum eUIFont_ID { @@ -548,7 +553,7 @@ typedef struct UserDef { short undosteps; short pad1; int undomemory; - int pad3; + float gpu_viewport_quality; short gp_manhattendist, gp_euclideandist, gp_eraser; short gp_settings; /* eGP_UserdefSettings */ short tb_leftmouse, tb_rightmouse; @@ -573,7 +578,7 @@ typedef struct UserDef { char keyhandles_new; /* handle types for newly added keyframes */ char gpu_select_method; char gpu_select_pick_deph; - char gpu_viewport_antialias; + char pad0; char view_frame_type; /* eZoomFrame_Mode */ int view_frame_keyframes; /* number of keyframes to zoom around current frame */ |