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

gpu_shader_material_transparent.glsl « material « shaders « gpu « blender « source - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 9040f62bd3f38ef4c036ddbed7b10800ab0a97f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
#ifndef VOLUMETRICS
void node_bsdf_transparent(vec4 color, out Closure result)
{
  result = CLOSURE_DEFAULT;
  result.radiance = vec3(0.0);
  result.transmittance = abs(color.rgb);
}
#else
/* Stub transparent because it is not compatible with volumetrics. */
#  define node_bsdf_transparent(a, b) (b = CLOSURE_DEFAULT)
#endif