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: 14acf9925a23c2235e31686f386a29587e37482b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#ifndef VOLUMETRICS
void node_bsdf_diffuse(vec4 color, float roughness, vec3 N, out Closure result)
{
  N = normalize(N);
  result = CLOSURE_DEFAULT;
  eevee_closure_diffuse(N, color.rgb, 1.0, result.radiance);
  closure_load_ssr_data(vec3(0.0), 0.0, N, viewCameraVec, -1, result);
  result.radiance *= color.rgb;
}
#else
/* Stub diffuse because it is not compatible with volumetrics. */
#  define node_bsdf_diffuse
#endif