blob: f01f0e35cccad2ba1edb436b43f6f360af42d384 (
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_ramp_util.h"
#include "stdcycles.h"
shader node_rgb_ramp(color ramp_color[] = {0.0},
float ramp_alpha[] = {0.0},
int interpolate = 1,
float Fac = 0.0,
output color Color = 0.0,
output float Alpha = 1.0)
{
Color = rgb_ramp_lookup(ramp_color, Fac, interpolate, 0);
Alpha = rgb_ramp_lookup(ramp_alpha, Fac, interpolate, 0);
}
|