Blender  V3.3
scene/background.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: Apache-2.0
2  * Copyright 2011-2022 Blender Foundation */
3 
4 #ifndef __BACKGROUND_H__
5 #define __BACKGROUND_H__
6 
7 #include "graph/node.h"
8 
9 #include "util/types.h"
10 
12 
13 class Device;
14 class DeviceScene;
15 class Scene;
16 class Shader;
17 
18 class Background : public Node {
19  public:
21 
22  NODE_SOCKET_API(bool, use_shader)
23 
24  NODE_SOCKET_API(uint, visibility)
25  NODE_SOCKET_API(Shader *, shader)
26 
27  NODE_SOCKET_API(bool, transparent)
28  NODE_SOCKET_API(bool, transparent_glass)
29  NODE_SOCKET_API(float, transparent_roughness_threshold)
30 
31  NODE_SOCKET_API(float, volume_step_size)
32 
33  NODE_SOCKET_API(ustring, lightgroup)
34 
35  Background();
36  ~Background();
37 
38  void device_update(Device *device, DeviceScene *dscene, Scene *scene);
39  void device_free(Device *device, DeviceScene *dscene);
40 
41  void tag_update(Scene *scene);
42 
43  Shader *get_shader(const Scene *scene);
44 };
45 
47 
48 #endif /* __BACKGROUND_H__ */
unsigned int uint
Definition: BLI_sys_types.h:67
NODE_DECLARE Background()
void device_update(Device *device, DeviceScene *dscene, Scene *scene)
void device_free(Device *device, DeviceScene *dscene)
Shader * get_shader(const Scene *scene)
void tag_update(Scene *scene)
#define CCL_NAMESPACE_END
Definition: cuda/compat.h:9
Scene scene
#define NODE_SOCKET_API(type_, name)
Definition: graph/node.h:54
#define NODE_DECLARE
Definition: node_type.h:135