diff options
author | Peter Klimenko <peterklimk@outlook.com> | 2020-07-31 11:45:15 +0300 |
---|---|---|
committer | Peter Klimenko <peterklimk@outlook.com> | 2020-07-31 11:45:15 +0300 |
commit | 97a4a8d0fb7fd9ac34f9f5d4d5a0689c01235e14 (patch) | |
tree | fc9746d2210eda08be9d44ae67d5e58d64b48b40 /source/blender/gpu/shaders/gpu_shader_image_alpha_color_frag.glsl | |
parent | 4a7c203e9ecc7c5b0370afc0fdd6bcc183dc00df (diff) | |
parent | f3e8326453ae856d7914e45e832a2ed80aa9a9b9 (diff) |
merge
Diffstat (limited to 'source/blender/gpu/shaders/gpu_shader_image_alpha_color_frag.glsl')
-rw-r--r-- | source/blender/gpu/shaders/gpu_shader_image_alpha_color_frag.glsl | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/source/blender/gpu/shaders/gpu_shader_image_alpha_color_frag.glsl b/source/blender/gpu/shaders/gpu_shader_image_alpha_color_frag.glsl deleted file mode 100644 index cf71d4ac0c5..00000000000 --- a/source/blender/gpu/shaders/gpu_shader_image_alpha_color_frag.glsl +++ /dev/null @@ -1,14 +0,0 @@ - -in vec2 texCoord_interp; -out vec4 fragColor; - -uniform vec4 color; -uniform sampler2D image; - -void main() -{ - fragColor = texture(image, texCoord_interp).r * color.rgba; - /* Premul by alpha (not texture alpha) - * Use blending function GPU_blend_set_func(GPU_ONE, GPU_ONE_MINUS_SRC_ALPHA); */ - fragColor.rgb *= color.a; -} |