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

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

#include "stdcycles.h"

shader node_combine_color(string color_type = "rgb",
                          float Red = 0.0,
                          float Green = 0.0,
                          float Blue = 0.0,
                          output color Color = 0.8)
{
  if (color_type == "rgb" || color_type == "hsv" || color_type == "hsl")
    Color = color(color_type, Red, Green, Blue);
  else
    warning("%s", "Unknown color space!");
}