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: 800d0f81d4ab76efe791ff36c11c26fbf3c8632d (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
#endif