Blender
V2.93
intern
cycles
render
background.h
Go to the documentation of this file.
1
/*
2
* Copyright 2011-2013 Blender Foundation
3
*
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
* you may not use this file except in compliance with the License.
6
* You may obtain a copy of the License at
7
*
8
* http://www.apache.org/licenses/LICENSE-2.0
9
*
10
* Unless required by applicable law or agreed to in writing, software
11
* distributed under the License is distributed on an "AS IS" BASIS,
12
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
* See the License for the specific language governing permissions and
14
* limitations under the License.
15
*/
16
17
#ifndef __BACKGROUND_H__
18
#define __BACKGROUND_H__
19
20
#include "
graph/node.h
"
21
22
#include "
util/util_types.h
"
23
24
CCL_NAMESPACE_BEGIN
25
26
class
Device
;
27
class
DeviceScene
;
28
class
Scene
;
29
class
Shader
;
30
31
class
Background
:
public
Node
{
32
public
:
33
NODE_DECLARE
34
35
NODE_SOCKET_API
(
float
, ao_factor)
36
NODE_SOCKET_API
(
float
, ao_distance)
37
38
NODE_SOCKET_API
(
bool
, use_shader)
39
NODE_SOCKET_API
(
bool
, use_ao)
40
41
NODE_SOCKET_API
(
uint
, visibility)
42
NODE_SOCKET_API
(
Shader
*,
shader
)
43
44
NODE_SOCKET_API
(
bool
, transparent)
45
NODE_SOCKET_API
(
bool
, transparent_glass)
46
NODE_SOCKET_API
(
float
, transparent_roughness_threshold)
47
48
NODE_SOCKET_API
(
float
, volume_step_size)
49
50
Background
();
51
~Background
();
52
53
void
device_update
(
Device
*device,
DeviceScene
*dscene,
Scene
*
scene
);
54
void
device_free
(
Device
*device,
DeviceScene
*dscene);
55
56
void
tag_update
(
Scene
*
scene
);
57
58
Shader
*
get_shader
(
const
Scene
*
scene
);
59
};
60
61
CCL_NAMESPACE_END
62
63
#endif
/* __BACKGROUND_H__ */
uint
unsigned int uint
Definition:
BLI_sys_types.h:83
Background
Definition:
background.h:31
Background::Background
NODE_DECLARE Background()
Definition:
render/background.cpp:55
Background::~Background
~Background()
Definition:
render/background.cpp:60
Background::device_update
void device_update(Device *device, DeviceScene *dscene, Scene *scene)
Definition:
render/background.cpp:64
Background::device_free
void device_free(Device *device, DeviceScene *dscene)
Definition:
render/background.cpp:127
Background::get_shader
Shader * get_shader(const Scene *scene)
Definition:
render/background.cpp:146
Background::tag_update
void tag_update(Scene *scene)
Definition:
render/background.cpp:131
DeviceScene
Definition:
scene.h:71
Device
Definition:
device.h:293
Shader
Definition:
shader.h:80
scene
Scene scene
Definition:
deg_eval_copy_on_write.cc:120
CCL_NAMESPACE_END
#define CCL_NAMESPACE_END
Definition:
kernel_compat_cuda.h:23
shader
void KERNEL_FUNCTION_FULL_NAME() shader(KernelGlobals *kg, uint4 *input, float4 *output, int type, int filter, int i, int offset, int sample)
Definition:
kernel_cpu_impl.h:151
CCL_NAMESPACE_BEGIN
Definition:
blender_python.cpp:54
node.h
NODE_SOCKET_API
#define NODE_SOCKET_API(type_, name)
Definition:
node.h:63
NODE_DECLARE
#define NODE_DECLARE
Definition:
node_type.h:148
Node
Definition:
node.h:98
Scene
Definition:
DNA_scene_types.h:1684
util_types.h
Generated on Tue Jan 31 2023 14:37:24 for Blender by
doxygen
1.9.1