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

gpu_shader_material_velvet.glsl « material « shaders « gpu « blender « source - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 97726bfe66fada7d584770ec03a4bfda32efec17 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14

void node_bsdf_velvet(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);
}