88 const int pass_filter,
98 const int tot_highpoly,
99 const size_t num_pixels,
100 const bool is_custom_cage,
101 const float cage_extrusion,
102 const float max_ray_distance,
104 float mat_cage[4][4],
105 struct Mesh *me_cage);
109 const size_t num_pixels,
111 const char *uv_layer);
118 const size_t num_pixels,
124 const size_t num_pixels,
131 const size_t num_pixels,
struct Depsgraph Depsgraph
bool RE_bake_engine(struct Render *re, struct Depsgraph *depsgraph, struct Object *object, const int object_id, const BakePixel pixel_array[], const BakeTargets *targets, const eScenePassType pass_type, const int pass_filter, float result[])
bool RE_bake_pixels_populate_from_objects(struct Mesh *me_low, BakePixel pixel_array_from[], BakePixel pixel_array_to[], BakeHighPolyData highpoly[], const int tot_highpoly, const size_t num_pixels, const bool is_custom_cage, const float cage_extrusion, const float max_ray_distance, float mat_low[4][4], float mat_cage[4][4], struct Mesh *me_cage)
void RE_bake_normal_world_to_world(const BakePixel pixel_array[], const size_t num_pixels, const int depth, float result[], const eBakeNormalSwizzle normal_swizzle[3])
struct BakeHighPolyData BakeHighPolyData
void RE_bake_normal_world_to_object(const BakePixel pixel_array[], const size_t num_pixels, const int depth, float result[], struct Object *ob, const eBakeNormalSwizzle normal_swizzle[3])
bool RE_bake_has_engine(struct Render *re)
struct BakePixel BakePixel
void RE_bake_normal_world_to_tangent(const BakePixel pixel_array[], const size_t num_pixels, const int depth, float result[], struct Mesh *me, const eBakeNormalSwizzle normal_swizzle[3], float mat[4][4])
int RE_pass_depth(const eScenePassType pass_type)
void RE_bake_ibuf_clear(struct Image *image, const bool is_tangent)
struct BakeTargets BakeTargets
void RE_bake_pixels_populate(struct Mesh *me, struct BakePixel *pixel_array, const size_t num_pixels, const struct BakeTargets *targets, const char *uv_layer)
struct BakeImage BakeImage
void RE_bake_margin(struct ImBuf *ibuf, char *mask, const int margin)
void RE_bake_mask_fill(const BakePixel pixel_array[], const size_t num_pixels, char *mask)
const Depsgraph * depsgraph
ccl_device_inline float4 mask(const int4 &mask, const float4 &a)