Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gpu_shader_compositor_color_to_luminance.glsl « library « shaders « realtime_compositor « compositor « blender « source - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: bcdd625bd4f2d75728be3288dd9ec509be5348f5 (plain)
1
2
3
4
5
6
#pragma BLENDER_REQUIRE(gpu_shader_common_color_utils.glsl)

void color_to_luminance(vec4 color, const vec3 luminance_coefficients, out float result)
{
  result = get_luminance(color.rgb, luminance_coefficients);
}