diff options
author | Jacques Lucke <mail@jlucke.com> | 2018-10-04 19:53:40 +0300 |
---|---|---|
committer | Jacques Lucke <mail@jlucke.com> | 2018-10-04 19:54:08 +0300 |
commit | a2d633316bb87df4f147d9b837d875d900225988 (patch) | |
tree | 66ceb617f9e929fc961837d4a6eb6b5f132cadd1 /source/blender/gpu/shaders | |
parent | 33d89e482b9a4f0fca3366f1482b83be178a2652 (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.glsl | 22 |
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; -} |