Blender V5.3
gpu_shader_material_squeeze.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 squeeze(float val, float width, float center, float &outval)
11{
12 outval = 1.0f / (1.0f + pow(2.71828183f, -((val - center) * width)));
13}
#define pow
void squeeze(float val, float width, float center, float &outval)