-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## 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 custom `UvOptions` for each 6 sides, I added a `with_multi_sides_uv_options` method * `UVOptions` changes: * changed `flip_x` and `flip_y` fields to `flip` BVec2, the current builder methods are not changed * Added `rect` field, to remap the coordinates in specific sections, and `with_rect` builder method * Changed the order of operations in `alter_uvs` for more logical order * Improved `mesh_builder` example * Fixed `MeshInfo::quad` UV generation which was upside down
- Loading branch information
1 parent
6a4bbd3
commit 190a1fe
Showing
7 changed files
with
208 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.