Blender V5.0
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
18struct Image;
19struct Mesh;
22
24 /* Base mesh at the input of the multiresolution modifier and data of the modifier which is being
25 * baked. */
26 Mesh *base_mesh = nullptr;
28
29 int bake_margin = 0;
33
34 /* Use low-resolution mesh when baking displacement maps.
35 * When true displacement is calculated between the final position in the SubdivCCG and the
36 * corresponding location on the base mesh.
37 * When false displacement is calculated between the final position in the SubdivCCG and the
38 * multiresolution modifier calculated at the bake level, further subdivided (without adding
39 * displacement) to the final multi-resolution level. */
41
42 /* Material aligned image array (for per-face bake image), */
44
46
49
50 bool *stop = nullptr;
51 bool *do_update = nullptr;
52 float *progress = nullptr;
53};
54
eBakeType
@ R_BAKE_NORMALS
eBakeSpace
@ R_BAKE_SPACE_OBJECT
eBakeMarginType
@ R_BAKE_ADJACENT_FACES
void RE_multires_bake_images(MultiresBakeRender &bake)
blender::Set< Image * > images
blender::Vector< Image * > ob_image
MultiresModifierData * multires_modifier
eBakeSpace displacement_space
eBakeMarginType bake_margin_type