Welcome to mirror list, hosted at ThFree Co, Russian Federation.

node_velvet_bsdf.osl « shaders « osl « kernel « cycles « intern - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 07950e8830f2456915a2590b11a11a5d4eb49980 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* SPDX-License-Identifier: Apache-2.0
 * Copyright 2011-2022 Blender Foundation */

#include "node_fresnel.h"
#include "stdcycles.h"

shader node_velvet_bsdf(color Color = 0.8,
                        float Sigma = 0.0,
                        normal Normal = N,
                        output closure color BSDF = 0)
{
  float sigma = clamp(Sigma, 0.0, 1.0);

  BSDF = Color * ashikhmin_velvet(Normal, sigma);
}