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

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

#include "stdcycles.h"

shader node_separate_rgb(color Image = 0.8,
                         output float R = 0.0,
                         output float G = 0.0,
                         output float B = 0.0)
{
  R = Image[0];
  G = Image[1];
  B = Image[2];
}