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

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

#include "node_color.h"
#include "stdcycles.h"

shader node_separate_hsv(color Color = 0.8,
                         output float H = 0.0,
                         output float S = 0.0,
                         output float V = 0.0)
{
  color col = rgb_to_hsv(Color);

  H = col[0];
  S = col[1];
  V = col[2];
}