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

#include "stdcycles.h"

shader node_invert(float Fac = 1.0, color ColorIn = 0.8, output color ColorOut = 0.8)
{
  color ColorInv = color(1.0) - ColorIn;
  ColorOut = mix(ColorIn, ColorInv, Fac);
}
