deathcap / artpacks

cascading texture/sound artwork pack loader
http://deathcap.github.io/artpacks/
7 stars 3 forks source link

Static foliage colorization #8

Closed deathcap closed 10 years ago

deathcap commented 10 years ago

MC texture packs usually use a grayish color as a placeholder for colormapped grass, leaves, and other living things, see: https://github.com/deathcap/voxel-texture-shader/issues/9

Having colorization support in artpacks may be useful, too. Statically replace the colors on load, as appropriate, so applications using this module can easily reasonably-correctly show these kinds of textures without any extra effort on their part (e.g. for dynamic biome-dependent postprocessing).

deathcap commented 10 years ago

Example of texture needing color: https://github.com/smenes/Faithful32/blob/faithful32_1.6.4/assets/minecraft/textures/blocks/grass_top.png - looks like all shades of gray (R=G=B) are recolored, with an appropriate brightness

deathcap commented 10 years ago

https://github.com/deathcap/graycolorize

deathcap commented 10 years ago

Example using https://github.com/smenes/Faithful32, before:

screen shot 2014-03-13 at 7 38 28 pm

after (with above commit):

screen shot 2014-03-13 at 7 38 03 pm