Blender V5.0
RE_bake.h File Reference
#include "BLI_string_ref.hh"
#include "DNA_scene_types.h"
#include "RE_pipeline.h"

Go to the source code of this file.

Classes

struct  BakeImage
struct  BakeTargets
struct  BakePixel
struct  BakeHighPolyData

Functions

bool RE_bake_has_engine (const struct Render *re)
bool RE_bake_engine (struct Render *re, struct Depsgraph *depsgraph, struct Object *object, int object_id, const BakePixel pixel_array[], const BakeTargets *targets, eScenePassType pass_type, int pass_filter, float result[])
int RE_pass_depth (eScenePassType pass_type)
bool RE_bake_pixels_populate_from_objects (struct Mesh *me_low, BakePixel pixel_array_from[], BakePixel pixel_array_to[], BakeHighPolyData highpoly[], int highpoly_num, size_t pixels_num, bool is_custom_cage, float cage_extrusion, float max_ray_distance, const float mat_low[4][4], const float mat_cage[4][4], struct Mesh *me_cage)
void RE_bake_pixels_populate (struct Mesh *mesh, struct BakePixel *pixel_array, size_t pixels_num, const struct BakeTargets *targets, blender::StringRef uv_layer)
void RE_bake_mask_fill (const BakePixel pixel_array[], size_t pixels_num, char *mask)
void RE_bake_margin (struct ImBuf *ibuf, char *mask, int margin, char margin_type, const Mesh *mesh, blender::StringRef uv_layer, const float uv_offset[2])
void RE_bake_normal_world_to_object (const BakePixel pixel_array[], size_t pixels_num, int depth, float result[], struct Object *ob, const eBakeNormalSwizzle normal_swizzle[3])
void RE_bake_normal_world_to_tangent (const BakePixel pixel_array[], size_t pixels_num, int depth, float result[], struct Mesh *mesh, const eBakeNormalSwizzle normal_swizzle[3], const float mat[4][4])
void RE_bake_normal_world_to_world (const BakePixel pixel_array[], size_t pixels_num, int depth, float result[], const eBakeNormalSwizzle normal_swizzle[3])
void RE_bake_ibuf_clear (struct Image *image, bool is_tangent)

Function Documentation

◆ RE_bake_engine()

◆ RE_bake_has_engine()

bool RE_bake_has_engine ( const struct Render * re)

References depsgraph, and result.

◆ RE_bake_ibuf_clear()

void RE_bake_ibuf_clear ( struct Image * image,
bool is_tangent )

◆ RE_bake_margin()

void RE_bake_margin ( struct ImBuf * ibuf,
char * mask,
int margin,
char margin_type,
const Mesh * mesh,
blender::StringRef uv_layer,
const float uv_offset[2] )

◆ RE_bake_mask_fill()

void RE_bake_mask_fill ( const BakePixel pixel_array[],
size_t pixels_num,
char * mask )

◆ RE_bake_normal_world_to_object()

void RE_bake_normal_world_to_object ( const BakePixel pixel_array[],
size_t pixels_num,
int depth,
float result[],
struct Object * ob,
const eBakeNormalSwizzle normal_swizzle[3] )

◆ RE_bake_normal_world_to_tangent()

void RE_bake_normal_world_to_tangent ( const BakePixel pixel_array[],
size_t pixels_num,
int depth,
float result[],
struct Mesh * mesh,
const eBakeNormalSwizzle normal_swizzle[3],
const float mat[4][4] )

◆ RE_bake_normal_world_to_world()

void RE_bake_normal_world_to_world ( const BakePixel pixel_array[],
size_t pixels_num,
int depth,
float result[],
const eBakeNormalSwizzle normal_swizzle[3] )

Definition at line 1004 of file bake.cc.

References copy_v3_v3(), i, nor, normal_compress(), and result.

Referenced by blender::ed::object::bake().

◆ RE_bake_pixels_populate()

void RE_bake_pixels_populate ( struct Mesh * mesh,
struct BakePixel * pixel_array,
size_t pixels_num,
const struct BakeTargets * targets,
blender::StringRef uv_layer )

References mask(), and result.

◆ RE_bake_pixels_populate_from_objects()

bool RE_bake_pixels_populate_from_objects ( struct Mesh * me_low,
BakePixel pixel_array_from[],
BakePixel pixel_array_to[],
BakeHighPolyData highpoly[],
int highpoly_num,
size_t pixels_num,
bool is_custom_cage,
float cage_extrusion,
float max_ray_distance,
const float mat_low[4][4],
const float mat_cage[4][4],
struct Mesh * me_cage )

◆ RE_pass_depth()