Blender V5.3
RE_multires_bake.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2010 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9#pragma once
10
11#include "DNA_scene_types.h"
12
13#include "BLI_set.hh"
14#include "BLI_vector.hh"
15
16#include "RE_pipeline.h"
17
18namespace blender {
19
20struct Image;
21struct Mesh;
24
26 /* Base mesh at the input of the multiresolution modifier and data of the modifier which is being
27 * baked. */
28 Mesh *base_mesh = nullptr;
30
31 int bake_margin = 0;
35
36 /* Use low-resolution mesh when baking displacement maps.
37 * When true displacement is calculated between the final position in the SubdivCCG and the
38 * corresponding location on the base mesh.
39 * When false displacement is calculated between the final position in the SubdivCCG and the
40 * multiresolution modifier calculated at the bake level, further subdivided (without adding
41 * displacement) to the final multi-resolution level. */
43
44 /* Material aligned image array (for per-face bake image), */
46
48
51
52 bool *stop = nullptr;
53 bool *do_update = nullptr;
54 float *progress = nullptr;
55};
56
58
59} // namespace blender
BMesh Iterators.
@ R_BAKE_ADJACENT_FACES
void RE_multires_bake_images(MultiresBakeRender &bake)
MultiresModifierData * multires_modifier