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

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

void node_bsdf_translucent(vec4 color, vec3 N, float weight, out Closure result)
{
  N = safe_normalize(N);

  ClosureTranslucent translucent_data;
  translucent_data.weight = weight;
  translucent_data.color = color.rgb;
  translucent_data.N = -N;

  result = closure_eval(translucent_data);
}