Blender V5.3
gpu_shader_material_background.bsl.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2019-2022 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
5#pragma once
6
8
9[[node]]
11 float strength,
12 float weight,
13 KernelGlobals &kg,
14 ShadingData &sd,
15 Closure &result)
16{
17 ClosureEmission emission_data;
18 emission_data.emission = color.rgb * (strength * weight);
19
20 result = closure_eval(kg, sd, emission_data);
21}
Closure closure_eval(KernelGlobals &kg, ShadingData &sd, ClosureDiffuse diffuse)
void node_background(float4 color, float strength, float weight, KernelGlobals &kg, ShadingData &sd, Closure &result)