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

gpu_shader_material_background.glsl « material « shaders « gpu « blender « source - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 69ef4dcb7c75f1c2df98ee5bc52734223ec37831 (plain)
1
2
3
4
5
6
7
8
9
10
11
void node_background(vec4 color, float strength, out Closure result)
{
#ifndef VOLUMETRICS
  color *= strength;
  result = CLOSURE_DEFAULT;
  result.radiance = color.rgb;
  result.transmittance = vec3(0.0);
#else
  result = CLOSURE_DEFAULT;
#endif
}