and-rad / texture_bake

Streamlined PBR texture baking for Blender
GNU General Public License v3.0
4 stars 0 forks source link

Make material color id generation more predictable #8

Open and-rad opened 2 years ago

and-rad commented 2 years ago

When material ids are baked to a texture, the colors are selected randomly. This is not ideal because the texture is meant to be used as a mask in material setups. The random nature of the color creation means that these colors will be different with each new bake and any material that uses them will have to be adjusted.

A solution to this problem needs to retain colors for each material either based on the material's index or name.