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

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

void node_output_world(Closure surface, Closure volume, out Closure result)
{
#ifndef VOLUMETRICS
  result.radiance = surface.radiance * backgroundAlpha;
  result.transmittance = vec3(1.0 - backgroundAlpha);
#else
  result = volume;
#endif /* VOLUMETRICS */
}