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:
authorDalai Felinto <dfelinto@gmail.com>2018-04-28 03:51:27 +0300
committerDalai Felinto <dfelinto@gmail.com>2018-04-28 17:54:57 +0300
commit9b0ea92be75c67567e05a091d0593b87564e0ad1 (patch)
tree7e350eb0097468d4d0c424ee11abf7ac1a43996d /source/blender/editors/interface/interface_intern.h
parentc06bfe9d09c33cebdffd2c840252d4863fd8ca33 (diff)
UI: Number slider uniform filling
Now we always fill the slider with a vertical boundary. A bit hard to explain, but very easy to see the difference. I split the widget in three parts and used fragment shader discard to remove the undesired bits. That means all the widget program is doing a bit extra calculation. Reviewers: fclem Subscribers: billreynish Differential Revision: https://developer.blender.org/D3186
Diffstat (limited to 'source/blender/editors/interface/interface_intern.h')
-rw-r--r--source/blender/editors/interface/interface_intern.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/editors/interface/interface_intern.h b/source/blender/editors/interface/interface_intern.h
index 6082b3ab7b0..a0515d7d4f0 100644
--- a/source/blender/editors/interface/interface_intern.h
+++ b/source/blender/editors/interface/interface_intern.h
@@ -717,7 +717,11 @@ typedef struct uiWidgetBaseParameters {
float color_tria[4];
float tria1_center[2], tria2_center[2];
float tria1_size, tria2_size;
- float shade_dir, do_alpha_check;
+ float shade_dir;
+ /* We pack alpha check and discard factor in alpha_discard.
+ * If the value is negative then we do alpha check.
+ * The absolute value itself is the discard factor. */
+ float alpha_discard;
} uiWidgetBaseParameters;
enum {