diff options
author | Omar Emara <mail@OmarEmara.dev> | 2022-03-30 22:01:44 +0300 |
---|---|---|
committer | Omar Emara <mail@OmarEmara.dev> | 2022-03-30 22:01:44 +0300 |
commit | 2f6991cbeb9da1ab3cbb1f6ef79eef23aebc8d86 (patch) | |
tree | 97fc33e581f7290b1d2cf5d6ba98a2b73c014378 /source/blender/gpu/shaders/compositor/compositor_convert_color_to_float.glsl | |
parent | 6f9f534149a7b1352115cb2f507ccce109447845 (diff) |
Viewport Compositor: Share conversion shaders
Diffstat (limited to 'source/blender/gpu/shaders/compositor/compositor_convert_color_to_float.glsl')
-rw-r--r-- | source/blender/gpu/shaders/compositor/compositor_convert_color_to_float.glsl | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/source/blender/gpu/shaders/compositor/compositor_convert_color_to_float.glsl b/source/blender/gpu/shaders/compositor/compositor_convert_color_to_float.glsl deleted file mode 100644 index 27b0b9a231c..00000000000 --- a/source/blender/gpu/shaders/compositor/compositor_convert_color_to_float.glsl +++ /dev/null @@ -1,9 +0,0 @@ -/* Store the average of the input's three color channels in the output, the alpha channel is - * ignored. */ - -void main() -{ - ivec2 xy = ivec2(gl_GlobalInvocationID.xy); - vec4 color = texelFetch(input_sampler, xy, 0); - imageStore(output_image, xy, vec4((color.r + color.g + color.b) / 3.0)); -} |