Blender  V3.3
Functions
RE_texture_margin.h File Reference

Go to the source code of this file.

Functions

void RE_generate_texturemargin_adjacentfaces (struct ImBuf *ibuf, char *mask, int margin, struct Mesh const *me, char const *uv_layer, const float uv_offset[2])
 
void RE_generate_texturemargin_adjacentfaces_dm (struct ImBuf *ibuf, char *mask, int margin, struct DerivedMesh *dm, const float uv_offset[2])
 

Function Documentation

◆ RE_generate_texturemargin_adjacentfaces()

void RE_generate_texturemargin_adjacentfaces ( struct ImBuf ibuf,
char *  mask,
int  margin,
struct Mesh const *  me,
char const *  uv_layer,
const float  uv_offset[2] 
)

Generate a margin around the textures uv islands by copying pixels from the adjacent polygon.

Parameters
ibufthe texture image.
maskpixels with a mask value of 1 are not written to.
marginthe size of the margin in pixels.
methe mesh to use the polygons of.
uv_layerThe UV layer to use.

◆ RE_generate_texturemargin_adjacentfaces_dm()

void RE_generate_texturemargin_adjacentfaces_dm ( struct ImBuf ibuf,
char *  mask,
int  margin,
struct DerivedMesh dm,
const float  uv_offset[2] 
)

Definition at line 613 of file texture_margin.cc.

References blender::render::texturemargin::generate_margin(), and mask().

Referenced by bake_ibuf_filter().