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: 32484491abda92048f19c6216f7c9a88048e2442 (plain)
1
2
3
4
5
6
7
8
9

void node_emission(vec4 color, float strength, float weight, out Closure result)
{
  ClosureEmission emission_data;
  emission_data.weight = weight;
  emission_data.emission = color.rgb * strength;

  result = closure_eval(emission_data);
}