Blender
V5.3
source
blender
gpu
shaders
material
gpu_shader_material_invert.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
invert
(
float
fac,
float4
col,
float4
&outcol)
11
{
12
outcol.xyz =
mix
(col.xyz,
float3
(1.0f) - col.xyz, fac);
13
outcol.
w
= col.
w
;
14
}
gpu_shader_compat.hh
node
#define node
Definition
gpu_shader_cxx_attribute.hh:142
invert
float2x2 invert(float2x2 mat)
Definition
gpu_shader_math_matrix.bsl.hh:28
mix
#define mix
Definition
radial_tiling_shared.hh:83
float3
Definition
sky_math.h:135
float4
Definition
sky_math.h:224
float4::w
float w
Definition
sky_math.h:225
Generated on
for Blender by
doxygen
1.18.0