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-10-04 19:53:40 +0300
committerJacques Lucke <mail@jlucke.com>2018-10-04 19:54:08 +0300
commita2d633316bb87df4f147d9b837d875d900225988 (patch)
tree66ceb617f9e929fc961837d4a6eb6b5f132cadd1 /source/blender/gpu/shaders
parent33d89e482b9a4f0fca3366f1482b83be178a2652 (diff)
Cleanup: Remove some unneeded code
Reviewers: fclem Differential Revision: https://developer.blender.org/D3767
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;
-}