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:
authorAlexander Gavrilov <angavrilov@gmail.com>2018-09-27 18:38:07 +0300
committerAlexander Gavrilov <angavrilov@gmail.com>2018-10-08 14:15:47 +0300
commitba3ef44a6b57970b278c3a99a7ee00906efa3eb7 (patch)
tree654377386ee147e096ebba57725f5949cb32adbe /source/blender/makesdna/DNA_view3d_types.h
parentd12e7818104d01af2bec39cec430456a32d6b69c (diff)
Implement display of weight isoline contours in the fragment shader.
Add an option to display contour lines tracing through points with the same interpolated weight value in weight paint mode. This can be useful for working on gentle gradients over a relatively high resolution mesh, where the difference in color between adjacent vertices is very small. The contour grid has 3 levels of detail going down to step 0.001, which automatically fade in or out based on the weight gradient. Fade out works by capping both screen space and weight space line width, and reducing alpha when the screen space width becomes too small for moire and noise-less rendering. Reviewers: fclem Differential Revision: https://developer.blender.org/D3749
Diffstat (limited to 'source/blender/makesdna/DNA_view3d_types.h')
-rw-r--r--source/blender/makesdna/DNA_view3d_types.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_view3d_types.h b/source/blender/makesdna/DNA_view3d_types.h
index 1b8846df4bc..fca1a79c775 100644
--- a/source/blender/makesdna/DNA_view3d_types.h
+++ b/source/blender/makesdna/DNA_view3d_types.h
@@ -177,6 +177,10 @@ typedef struct View3DOverlay {
/* Paint mode settings */
int paint_flag;
+ /* Weight paint mode settings */
+ int wpaint_flag;
+ char _pad2[4];
+
/* Alpha for texture, weight, vertex paint overlay */
float texture_paint_mode_opacity;
float vertex_paint_mode_opacity;
@@ -460,6 +464,11 @@ enum {
V3D_OVERLAY_PAINT_WIRE = (1 << 0),
};
+/* View3DOverlay->wpaint_flag */
+enum {
+ V3D_OVERLAY_WPAINT_CONTOURS = (1 << 0),
+};
+
/* View3D->around */
enum {
/* center of the bounding box */