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

node_invert.osl « shaders « osl « kernel « cycles « intern - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 6cf1758f4c69bace260fed451de450ae7320a6ef (plain)
1
2
3
4
5
6
7
8
9
10
/* SPDX-License-Identifier: Apache-2.0
 * Copyright 2011-2022 Blender Foundation */

#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);
}