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

gpu_shader_material_emission.glsl « material « shaders « gpu « blender « source - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f2de7c2da39ab292bc8aaeea0c095ae894403c1c (plain)
1
2
3
4
5
6
7
8
9
10
void node_emission(vec4 color, float strength, vec3 vN, out Closure result)
{
  result = CLOSURE_DEFAULT;
#ifndef VOLUMETRICS
  result.radiance = render_pass_emission_mask(color.rgb) * strength;
  result.ssr_normal = normal_encode(vN, viewCameraVec(viewPosition));
#else
  result.emission = color.rgb * strength;
#endif
}