|
Blender V4.3
|
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]) |
| 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.
| ibuf | the texture image. |
| mask | pixels with a mask value of 1 are not written to. |
| margin | the size of the margin in pixels. |
| me | the mesh to use the polygons of. |
| uv_layer | The UV layer to use. |
| void RE_generate_texturemargin_adjacentfaces_dm | ( | struct ImBuf * | ibuf, |
| char * | mask, | ||
| int | margin, | ||
| struct DerivedMesh * | dm, | ||
| const float | uv_offset[2] ) |
Definition at line 600 of file texture_margin.cc.
References CD_PROP_FLOAT2, blender::render::texturemargin::generate_margin(), DerivedMesh::getCornerEdgeArray, DerivedMesh::getCornerVertArray, DerivedMesh::getLoopDataArray, DerivedMesh::getNumEdges, DerivedMesh::getNumLoops, DerivedMesh::getNumPolys, DerivedMesh::getNumVerts, DerivedMesh::getPolyArray, and DerivedMesh::getVertArray.
Referenced by bake_ibuf_filter().