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

node_separate_xyz.osl « shaders « osl « kernel « cycles « intern - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 4959c67692e8db1c993b28d49823c104acead432 (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_xyz(vector Vector = 0.8,
                         output float X = 0.0,
                         output float Y = 0.0,
                         output float Z = 0.0)
{
  X = Vector[0];
  Y = Vector[1];
  Z = Vector[2];
}