Blender V5.3
eevee_nodetree_vert_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
10/* Note: Only included if there is a nodetree eval in the vertex shader. */
12
13/* Loading of the attributes into GlobalData. */
14void attrib_load(MeshVertex /*domain*/) {}
15void attrib_load(PointCloudPoint /*domain*/) {}
16void attrib_load(CurvesPoint /*domain*/) {}
17
18#ifndef NODETREE_FUNCTIONS /* Needed for linting. */
19# define NODETREE_FUNCTIONS
20
21/* Material graph connected to the displacement output. */
23{
24 return float3(0.0f);
25}
26
27/* Material graph connected to the surface output. */
28Closure nodetree_surface(KernelGlobals & /*kg*/, ShadingData & /*sd*/, float /*closure_rand*/)
29{
30 return Closure(0);
31}
32
33/* Material graph connected to the volume output. */
35{
36 return Closure(0);
37}
38
39/* Material graph connected to the volume output. */
41{
42 return 0.1f;
43}
44
45#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)