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: 092b9ed08bb5043e6fb4e74d529ea014db9eb87f (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 = color.rgb * strength;
  result.ssr_normal = normal_encode(vN, viewCameraVec);
#else
  result.emission = color.rgb * strength;
#endif
}