This repository has been archived on 2023-10-09. You can view files and clone it, but cannot push or open issues or pull requests.
Files
blender-archive/source/blender/gpu/shaders/material/gpu_shader_material_transparent.glsl

12 lines
326 B
GLSL
Raw Normal View History

#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