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

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

void node_output_aov(vec4 color, float value, out Closure result)
{
  result = CLOSURE_DEFAULT;
#ifndef VOLUMETRICS
  if (render_pass_aov_is_color()) {
    result.radiance = color.rgb;
  }
  else {
    result.radiance = vec3(value);
  }
#endif
}