MM94-CoalGrades icon

CoalGrades

Charcoal kilns bake graded coal from every kind of wood, and coal-fired smelting facilities accept the graded coal as proportionally stronger fuel. English/Korean.

By MM94

CHANGELOG

Changelog

0.1.4

  • Fixed drop-model (ground-dropped item) still rendering dark despite correctly-recolored textures: the renderer's vertex colors and/or material _Color were multiplying the texture toward black. Each clone prefab's drop-model renderer now gets its own mesh copy (never modifies the mesh shared with vanilla Coal) with vertex colors whitened (alpha preserved), and each material clone's _Color is whitened as well (alpha preserved) — the recolored texture is now the sole color source.
  • Added per-renderer/per-material-slot diagnostic logging (shader name, _Color presence/original value, vertex color count and original RGB min/max) to confirm the root cause, plus a fallback that enumerates all Color-type shader properties when neither vertex colors nor _Color explain the darkening.

0.1.3

  • Fixed drop-model (ground-dropped item) recoloring: shadow/highlight normalization was computed over the entire shared texture atlas instead of just the region the coal mesh actually samples, so every grade's drop model showed only its shadow color. Normalization and recoloring now use the mesh's UV bounding box in texture space (inventory icons were already correct and are unaffected).
  • Fixed a NullReferenceException when adding fuel to a smelter while the inventory contained an item with no m_dropPrefab (e.g. a crafted item) — FindAvailableFuel no longer calls vanilla Inventory.GetItem(isPrefabName:true) and instead does a null-safe scan over GetAllItems().

0.1.2

  • Added runtime-recolored inventory icons and drop-model textures for all 5 coal grades (no new image assets — vanilla Coal's icon and drop texture are copied and recolored in-memory based on each grade's shadow/highlight/gamma).

0.1.1 — Initial release