This repository has been archived on 2023-10-09. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
blender-archive/source/blender/gpu/shaders/material/gpu_shader_material_emission.glsl

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
242 B
GLSL
Raw Normal View History

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);
}