Blender V5.3
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
8
9[[node]]
10void 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}
float2x2 invert(float2x2 mat)
#define mix
float w
Definition sky_math.h:225