enigma_3d/
example_resources.rs

1// chessboard example
2//models
3
4#[cfg(feature = "examples")]
5pub fn chess_bishop_gltf() -> &'static [u8] {
6    include_bytes!("res/models/chessboard/bishop.glb")
7}
8
9#[cfg(feature = "examples")]
10pub fn chess_board_gltf() -> &'static [u8] {
11    include_bytes!("res/models/chessboard/board.glb")
12}
13
14#[cfg(feature = "examples")]
15pub fn chess_king_gltf() -> &'static [u8] {
16    include_bytes!("res/models/chessboard/king.glb")
17}
18
19#[cfg(feature = "examples")]
20pub fn chess_knight_gltf() -> &'static [u8] {
21    include_bytes!("res/models/chessboard/knight.glb")
22}
23
24#[cfg(feature = "examples")]
25pub fn chess_pawn_gltf() -> &'static [u8] {
26    include_bytes!("res/models/chessboard/pawn.glb")
27}
28
29#[cfg(feature = "examples")]
30pub fn chess_queen_gltf() -> &'static [u8] {
31    include_bytes!("res/models/chessboard/queen.glb")
32}
33
34#[cfg(feature = "examples")]
35pub fn chess_rook_gltf() -> &'static [u8] {
36    include_bytes!("res/models/chessboard/rook.glb")
37}
38
39#[cfg(feature = "examples")]
40pub fn terrain() -> &'static [u8] {
41    include_bytes!("res/models/chessboard/terrain.glb")
42}
43
44#[cfg(feature = "examples")]
45pub fn tree() -> &'static [u8] {
46    include_bytes!("res/models/chessboard/tree.glb")
47}
48
49// textures
50#[cfg(feature = "examples")]
51pub fn chess_figures_black_albedo() -> &'static [u8] {
52    include_bytes!("res/textures/chessboard/Figures_Black_basecolor.png")
53}
54#[cfg(feature = "examples")]
55pub fn chess_figures_white_albedo() -> &'static [u8] {
56    include_bytes!("res/textures/chessboard/Figures_White_basecolor.png")
57}
58#[cfg(feature = "examples")]
59pub fn chess_figures_metallic() -> &'static [u8] {
60    include_bytes!("res/textures/chessboard/Figures_metallic.png")
61}
62
63#[cfg(feature = "examples")]
64pub fn chess_figures_normal() -> &'static [u8] {
65    include_bytes!("res/textures/chessboard/Figures_normal.png")
66}
67
68#[cfg(feature = "examples")]
69pub fn chess_figures_black_roughness() -> &'static [u8] {
70    include_bytes!("res/textures/chessboard/Figures_Black_roughness.png")
71}
72
73#[cfg(feature = "examples")]
74pub fn chess_figures_white_roughness() -> &'static [u8] {
75    include_bytes!("res/textures/chessboard/Figures_White_roughness.png")
76}
77
78#[cfg(feature = "examples")]
79pub fn chess_board_albedo() -> &'static [u8] {
80    include_bytes!("res/textures/chessboard/Board_basecolor.png")
81}
82
83#[cfg(feature = "examples")]
84pub fn chess_board_normal() -> &'static [u8] {
85    include_bytes!("res/textures/chessboard/Board_normal.png")
86}
87
88#[cfg(feature = "examples")]
89pub fn chess_board_metallic() -> &'static [u8] {
90    include_bytes!("res/textures/chessboard/Board_metallic.png")
91}
92
93#[cfg(feature = "examples")]
94pub fn chess_board_roughness() -> &'static [u8] {
95    include_bytes!("res/textures/chessboard/Board_roughness.png")
96}
97
98#[cfg(feature = "examples")]
99pub fn terrain_albedo() -> &'static [u8] {
100    include_bytes!("res/textures/chessboard/Terrain_basecolor.png")
101}
102
103#[cfg(feature = "examples")]
104pub fn terrain_normal() -> &'static [u8] {
105    include_bytes!("res/textures/chessboard/Terrain_normal.png")
106}
107
108#[cfg(feature = "examples")]
109pub fn terrain_metallic() -> &'static [u8] {
110    include_bytes!("res/textures/chessboard/Terrain_metallic.png")
111}
112
113#[cfg(feature = "examples")]
114pub fn terrain_roughness() -> &'static [u8] {
115    include_bytes!("res/textures/chessboard/Terrain_roughness.png")
116}
117
118#[cfg(feature = "examples")]
119pub fn tree_albedo() -> &'static [u8] {
120    include_bytes!("res/textures/chessboard/Tree_basecolor.png")
121}
122
123#[cfg(feature = "examples")]
124pub fn tree_normal() -> &'static [u8] {
125    include_bytes!("res/textures/chessboard/Tree_normal.png")
126}
127
128#[cfg(feature = "examples")]
129pub fn tree_roughness() -> &'static [u8] {
130    include_bytes!("res/textures/chessboard/Tree_roughness.png")
131}
132
133//engine example
134#[cfg(feature = "examples")]
135pub fn suzanne() -> &'static [u8] {
136    include_bytes!("res/models/engine/suzanne.glb")
137}
138#[cfg(feature = "examples")]
139pub fn skybox_texture_hdr() -> &'static [u8] {
140    include_bytes!("res/textures/engine/skybox.hdr")
141}
142#[cfg(feature = "examples")]
143pub fn uv_checker() -> &'static [u8] {
144    include_bytes!("res/textures/engine/uv_checker.png")
145}
146
147// skinned-mesh example
148#[cfg(feature = "examples")]
149pub fn skinned_knight() -> &'static [u8] {
150    include_bytes!("res/models/skinned-mesh/knight.glb")
151}
152
153#[cfg(feature = "examples")]
154pub fn skinned_wiggle() -> &'static [u8] { include_bytes!("res/models/skinned-mesh/wiggle.glb")}
155
156#[cfg(feature = "examples")]
157pub fn skinned_knight_albedo() -> &'static [u8] { include_bytes!("res/textures/skinned-mesh/knight_albedo.png") }
158
159#[cfg(feature = "examples")]
160pub fn skinned_knight_normal() -> &'static [u8] { include_bytes!("res/textures/skinned-mesh/knight_normal.png") }
161
162#[cfg(feature = "examples")]
163pub fn skinned_knight_roughness() -> &'static [u8] { include_bytes!("res/textures/skinned-mesh/knight_roughness.png") }