Files
test2/source/blender/gpu/shaders/material/gpu_shader_material_sheen.glsl
Hans Goudey 77b14f2dcb Cleanup: Grammar: Fallback vs. fall back
The former is a noun or adjective, the latter is a verb.
2025-06-02 17:13:56 -04:00

19 lines
491 B
GLSL

/* SPDX-FileCopyrightText: 2019-2023 Blender Authors
*
* SPDX-License-Identifier: GPL-2.0-or-later */
void node_bsdf_sheen(float4 color, float roughness, float3 N, float weight, out Closure result)
{
color = max(color, float4(0.0f));
roughness = saturate(roughness);
N = safe_normalize(N);
/* Fall back to diffuse. */
ClosureDiffuse diffuse_data;
diffuse_data.weight = weight;
diffuse_data.color = color.rgb;
diffuse_data.N = N;
result = closure_eval(diffuse_data);
}