Blender V5.3
eevee_nodetree_frag_lib.bsl.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2022-2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
5#pragma once
6/* This file must replaced at runtime. The following content is only a possible implementation. */
7#pragma runtime_generated
8
11
12/* Loading of the attributes into GlobalData. */
13void attrib_load(WorldPoint /*domain*/) {}
14void attrib_load(VolumePoint /*domain*/) {}
15
16#ifndef NODETREE_FUNCTIONS /* Needed for linting. */
17# define NODETREE_FUNCTIONS
18
19/* Material graph connected to the displacement output. */
21{
22 return float3(0.0f);
23}
24
25/* Material graph connected to the surface output. */
26Closure nodetree_surface(KernelGlobals & /*kg*/, ShadingData & /*sd*/, float /*closure_rand*/)
27{
28 return Closure(0);
29}
30
31/* Material graph connected to the volume output. */
33{
34 return Closure(0);
35}
36
37/* Material graph connected to the volume output. */
39{
40 return 0.1f;
41}
42
43#endif
void attrib_load(WorldPoint)
float3 nodetree_displacement(KernelGlobals &, ShadingData &)
float nodetree_thickness(KernelGlobals &, ShadingData &)
Closure nodetree_volume(KernelGlobals &, ShadingData &)
Closure nodetree_surface(KernelGlobals &, ShadingData &, float)