Blender  V2.93
RE_multires_bake.h
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU General Public License
4  * as published by the Free Software Foundation; either version 2
5  * of the License, or (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software Foundation,
14  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15  *
16  * The Original Code is Copyright (C) 2010 Blender Foundation.
17  * All rights reserved.
18  */
19 
24 #pragma once
25 
26 struct MultiresBakeRender;
27 struct Scene;
28 
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
32 
33 typedef struct MultiresBakeRender {
36  int bake_filter; /* Bake-filter, aka margin */
37  int lvl, tot_lvl;
38  short mode;
39  bool use_lores_mesh; /* Use low-resolution mesh when baking displacement maps */
40 
41  /* material aligned image array (for per-face bake image) */
42  struct {
44  int len;
46 
47  int number_of_rays; /* Number of rays to be cast when doing AO baking */
48  float bias; /* Bias between object and start ray point when doing AO baking */
49 
52 
54 
55  int raytrace_structure; /* Optimization structure to be used for AO baking */
56  int octree_resolution; /* Resolution of octree when using octree optimization structure */
57  int threads; /* Number of threads to be used for baking */
58 
59  float user_scale; /* User scale used to scale displacement when baking derivative map. */
60 
61  short *stop;
62  short *do_update;
63  float *progress;
65 
67 
68 #ifdef __cplusplus
69 }
70 #endif
void RE_multires_bake_images(struct MultiresBakeRender *bkr)
struct MultiresBakeRender MultiresBakeRender
DerivedMesh * hires_dm
DerivedMesh * lores_dm
struct MultiresBakeRender::@1137 ob_image