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

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

void node_holdout(float weight, out Closure result)
{
  ClosureTransparency transparency_data;
  transparency_data.weight = weight;
  transparency_data.transmittance = vec3(0.0);
  transparency_data.holdout = 1.0;

  result = closure_eval(transparency_data);
}