diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2020-07-17 03:51:29 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2020-07-18 04:43:51 +0300 |
commit | dcf6e12a606f162aa0b70b003f521788eede3349 (patch) | |
tree | 2939d420b347a85648e3870332925380829a2412 /source/blender/gpu/shaders | |
parent | 7e66616b7e15298c6889765f89aa71853675ed21 (diff) |
Cleanup: GPUShader: Remove unused builtin shader
Diffstat (limited to 'source/blender/gpu/shaders')
3 files changed, 0 insertions, 38 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; -} diff --git a/source/blender/gpu/shaders/gpu_shader_image_mask_uniform_color_frag.glsl b/source/blender/gpu/shaders/gpu_shader_image_mask_uniform_color_frag.glsl deleted file mode 100644 index e5078d722b4..00000000000 --- a/source/blender/gpu/shaders/gpu_shader_image_mask_uniform_color_frag.glsl +++ /dev/null @@ -1,12 +0,0 @@ - -in vec2 texCoord_interp; -out vec4 fragColor; - -uniform sampler2D image; -uniform vec4 color; - -void main() -{ - fragColor.a = texture(image, texCoord_interp).a * color.a; - fragColor.rgb = color.rgb; -} diff --git a/source/blender/gpu/shaders/gpu_shader_image_modulate_alpha_frag.glsl b/source/blender/gpu/shaders/gpu_shader_image_modulate_alpha_frag.glsl deleted file mode 100644 index 613352b4ac8..00000000000 --- a/source/blender/gpu/shaders/gpu_shader_image_modulate_alpha_frag.glsl +++ /dev/null @@ -1,12 +0,0 @@ - -in vec2 texCoord_interp; -out vec4 fragColor; - -uniform float alpha; -uniform sampler2D image; - -void main() -{ - fragColor = texture(image, texCoord_interp); - fragColor.a *= alpha; -} |