Wacky-Mole / WackysDatabase

RecipeCustomization + Server Sync + OpenDatabase + Cloning
MIT License
6 stars 6 forks source link

Cloning Materials results in darker Materials #17

Closed Lughbaloo closed 11 hours ago

Lughbaloo commented 2 weeks ago

When running wackydb_save_material [materialname], the expected behavior is that the material is cloned from the existing material to be an exact copy. Applying this new material to an item without any alteration to the Material file will result in an item that is overall darker than using the donor material. It's as if the cloned textures are overlaying the donor textures, resulting in a darker texture.

To further test this, I cloned a cloned material, and cloned that material again, and applied it to weapons each step of the way. At every interval the weapon got darker and darker. This example is using meteorite as the material.

image image image

Lughbaloo commented 2 weeks ago

It might be an issue with a linear color space being interpreted as SRGB when the material is cloned, just a guess.

1_-_0xbROb4jjFP8C_MpZnmw

firefox_2024-06-24_22-44-39

Lughbaloo commented 4 days ago

Some further research found interesting results.

The albedo map derived from Wacky's clone command produces a much darker image than one derived straight from Unity.

These are both from the weapon Krom. krom_d krom_d

Wacky-Mole commented 11 hours ago

Issue should be fixed in latest version