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:
authorJacques Lucke <mail@jlucke.com>2018-09-24 18:10:29 +0300
committerJacques Lucke <mail@jlucke.com>2018-09-24 18:10:29 +0300
commit19f46c6ac071e32482969319f43d148ada97a63f (patch)
treef7a415bb592ebd2cf695c1526d75db2aeabd1b6e /source/blender/gpu/GPU_shader.h
parent809be0099ea161eda0f149411651bd9fe84e1b6a (diff)
Weight Paint: Multiply overlay on the mesh
Use the multiply blending mode for the weight paint overlay. To support the opacity slider, we need a new shader. Otherwise this combination of multiplication and mixing does not seem to be supported by glBlendFunc. Reviewers: brecht Differential Revision: https://developer.blender.org/D3727
Diffstat (limited to 'source/blender/gpu/GPU_shader.h')
-rw-r--r--source/blender/gpu/GPU_shader.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/gpu/GPU_shader.h b/source/blender/gpu/GPU_shader.h
index 21d5b5871fa..d14164e930e 100644
--- a/source/blender/gpu/GPU_shader.h
+++ b/source/blender/gpu/GPU_shader.h
@@ -118,6 +118,7 @@ typedef enum GPUBuiltinShader {
GPU_SHADER_SIMPLE_LIGHTING_FLAT_COLOR,
GPU_SHADER_SIMPLE_LIGHTING_SMOOTH_COLOR,
GPU_SHADER_SIMPLE_LIGHTING_SMOOTH_COLOR_ALPHA,
+ GPU_SHADER_MULTIPLY_AND_BLEND_PREPROCESSING,
/* for simple 2D drawing */
/**