Henry00IS / ShapeEditor

2D Shape Editor for Unity Editor to create complex 3D meshes out of 2D shapes with RealtimeCSG support.
MIT License
101 stars 9 forks source link

Assign materials to segments and shapes #9

Closed Henry00IS closed 1 year ago

Henry00IS commented 2 years ago

Have a list of materials in the project. The user can assign materials to individual segments as well as the entire shape. The segments will be shown with a different color to indicate the material slot used. Subtractive shapes can be represented using dotted lines where additive shapes will have filled lines as usual. The materials assigned to the segments are used for the extruded sides of the mesh and materials assigned to the shapes themselves are used for the front and back faces of the mesh.

This will make it more user-friendly to change and extrude the same brush later in RealtimeCSG, as this way at least the materials are kept between updates. It also makes the regular meshes more useful. Requires #5.

Henry00IS commented 1 year ago

Implemented a much better way since 841ccde with the 3D material editor.