Blender V4.3
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()