This patch extends the old Velvet BSDF node with a new shading model, and renames it to Sheen BSDF accordingly. The old model is still available, but new nodes now default to the "Microfiber" model, which is an implementation of https://tizianzeltner.com/projects/Zeltner2022Practical/. Pull Request: https://projects.blender.org/blender/blender/pulls/108869
15 lines
339 B
GLSL
15 lines
339 B
GLSL
|
|
void node_bsdf_sheen(vec4 color, float roughness, vec3 N, float weight, out Closure result)
|
|
{
|
|
N = safe_normalize(N);
|
|
|
|
/* Fallback to diffuse. */
|
|
ClosureDiffuse diffuse_data;
|
|
diffuse_data.weight = weight;
|
|
diffuse_data.color = color.rgb;
|
|
diffuse_data.N = N;
|
|
diffuse_data.sss_id = 0u;
|
|
|
|
result = closure_eval(diffuse_data);
|
|
}
|