/* SPDX-FileCopyrightText: 2011-2022 Blender Foundation
 *
 * SPDX-License-Identifier: Apache-2.0 */

#include "stdcycles.h"

shader node_rgb_to_bw(color Color = 0.0, output float Val = 0.0)
{
  Val = Color[0] * 0.2126 + Color[1] * 0.7152 + Color[2] * 0.0722;
}
