Blender V5.3
gpu_shader_material_combine_color.bsl.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2022 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
5#pragma once
6
8
9[[node]]
10void combine_color_rgb(float r, float g, float b, float4 &col)
11{
12 col = float4(r, g, b, 1.0f);
13}
14
15[[node]]
16void combine_color_hsv(float h, float s, float v, float4 &col)
17{
18 hsv_to_rgb(float4(h, s, v, 1.0f), col);
19}
20
21[[node]]
22void combine_color_hsl(float h, float s, float l, float4 &col)
23{
24 hsl_to_rgb(float4(h, s, l, 1.0f), col);
25}
void hsl_to_rgb(float4 hsl, float4 &outcol)
void hsv_to_rgb(float4 hsv, float4 &outcol)
void combine_color_hsv(float h, float s, float v, float4 &col)
void combine_color_rgb(float r, float g, float b, float4 &col)
void combine_color_hsl(float h, float s, float l, float4 &col)