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

gpu_shader_material_volume_absorption.glsl « material « shaders « gpu « blender « source - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e6c0880cd07089016770efac333c426f6e74e2df (plain)
1
2
3
4
5
6
7
8
void node_volume_absorption(vec4 color, float density, out Closure result)
{
#ifdef VOLUMETRICS
  result = Closure((1.0 - color.rgb) * density, vec3(0.0), vec3(0.0), 0.0);
#else
  result = CLOSURE_DEFAULT;
#endif
}