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:
Diffstat (limited to 'source/blender/gpu/shaders')
-rw-r--r--source/blender/gpu/shaders/gpu_shader_multiply_and_blend_preprocessing.glsl22
1 files changed, 0 insertions, 22 deletions
diff --git a/source/blender/gpu/shaders/gpu_shader_multiply_and_blend_preprocessing.glsl b/source/blender/gpu/shaders/gpu_shader_multiply_and_blend_preprocessing.glsl
deleted file mode 100644
index 88d84aeaef6..00000000000
--- a/source/blender/gpu/shaders/gpu_shader_multiply_and_blend_preprocessing.glsl
+++ /dev/null
@@ -1,22 +0,0 @@
-uniform float opacity;
-
-in vec4 finalColor;
-out vec4 fragColor;
-
-/* Blend Mode goal:
- * First multiply the foreground and background and then mix the result
- * of that with the background based on a opacity value.
- *
- * result = background * foreground * opacity + background * (1 - opacity)
- * = background * (foreground * opacity + (1 - opacity))
- * <------------------------------------>
- * computed in this shader
- *
- * Afterwards the background and the new foreground only have to be multiplied.
- */
-
-void main()
-{
- fragColor = finalColor * opacity + (1 - opacity);
- fragColor.a = finalColor.a;
-}