11 lines
281 B
GLSL
11 lines
281 B
GLSL
|
|
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
|
||
|
|
}
|