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

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

void node_bsdf_diffuse(vec4 color, float roughness, vec3 N, float weight, out Closure result)
{
  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);
}