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

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

void node_bsdf_toon(
    vec4 color, float size, float tsmooth, 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);
}