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: 94d624d82ad6bc6ab683a2d97f50e0539535f0c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* 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!");
}