Closed ManevilleF closed 8 months ago
I need more options for procedurally map a texture to the column meshes. Especially the ability to specify a UV rect for each face (Cap and sides).
ColumnMeshBuilder
UvOptions
with_multi_sides_uv_options
UVOptions
flip_x
flip_y
flip
rect
with_rect
alter_uvs
mesh_builder
MeshInfo::quad
Why
I need more options for procedurally map a texture to the column meshes. Especially the ability to specify a UV rect for each face (Cap and sides).
Work done
ColumnMeshBuilder
now accepts customUvOptions
for each 6 sides, I added awith_multi_sides_uv_options
methodUVOptions
changes:flip_x
andflip_y
fields toflip
BVec2, the current builder methods are not changedrect
field, to remap the coordinates in specific sections, andwith_rect
builder methodalter_uvs
for more logical ordermesh_builder
exampleMeshInfo::quad
UV generation which was upside down