Blender
V5.3
source
blender
gpu
shaders
material
gpu_shader_material_rgb_to_bw.bsl.hh
Go to the documentation of this file.
1
/* SPDX-FileCopyrightText: 2019 Blender Authors
2
*
3
* SPDX-License-Identifier: GPL-2.0-or-later */
4
5
#pragma once
6
7
#include "
gpu_shader_compat.hh
"
8
9
[[
node
]]
10
void
rgbtobw
(
float4
color,
float3
luminance_coefficients,
float
&outval)
11
{
12
outval =
dot
(color.rgb, luminance_coefficients);
13
}
gpu_shader_compat.hh
node
#define node
Definition
gpu_shader_cxx_attribute.hh:142
dot
float dot(VecOp< float, D >, VecOp< float, D >) RET
rgbtobw
void rgbtobw(float4 color, float3 luminance_coefficients, float &outval)
Definition
gpu_shader_material_rgb_to_bw.bsl.hh:10
float3
Definition
sky_math.h:135
float4
Definition
sky_math.h:224
Generated on
for Blender by
doxygen
1.18.0