1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
use ;
use crate::;
/// Material of an object surface.
///
/// It specifies the way how does ray bounce off the surface.
/// It defines the color, specularity, opacity, diffusion,
/// radiance and other properties of the object surface.
/// Device interface for material.
///
/// How to implement in OpenCL:
/// ```c
/// #include <clay_core/material/material.h>
///
/// MATERIAL_BOUNCE_RET <material>_bounce(
/// MATERIAL_BOUNCE_ARGS_DEF
/// ) {
/// ...
/// }
/// ```