Blender V5.3
gpu_shader_material_normal.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 normal_new_shading(float3 nor, float3 dir, float3 &outnor, float &outdot)
11{
12 outnor = dir;
13 outdot = dot(normalize(nor), dir);
14}
VecBase< float, D > normalize(VecOp< float, D >) RET
float dot(VecOp< float, D >, VecOp< float, D >) RET
void normal_new_shading(float3 nor, float3 dir, float3 &outnor, float &outdot)