Blender V5.0
RE_texture_margin.h File Reference
#include "BLI_string_ref.hh"

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, blender::StringRef uv_layer, 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,
blender::StringRef 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.

References mask().