deathcap / voxel-texture-shader

custom shader for texturing voxels in voxeljs (for three.js-based voxel-engine, no longer needed with voxel-engine-stackgl)
MIT License
8 stars 1 forks source link

Dynamic foliage colorization #9

Open deathcap opened 10 years ago

deathcap commented 10 years ago

Support recoloring grass, leaves, etc., possibly location-dependent. This will improve compatibility with MC resource packs, which include those textures but with gray, dynamically substituted at runtime with a biome colormap.

Currently, loading MC textures results in a very drab environment, because of this missing feature:

screen shot 2014-03-05 at 8 22 33 pm

https://github.com/deathcap/ProgrammerArt is much greener, because it doesn't follow this convention (https://github.com/deathcap/ProgrammerArt/issues/14):

screen shot 2014-03-05 at 8 29 06 pm

Investigate using:

https://github.com/hughsk/voxel-colorist https://github.com/hughsk/voxel-pp

deathcap commented 10 years ago

Maybe best implemented in https://github.com/deathcap/voxel-shader instead - add a few bits to the voxel format (https://github.com/deathcap/voxel-mesher/issues/1) for biome color, then replace the grayscale in GLSL? See also https://github.com/hughsk/pp-now

deathcap commented 10 years ago

https://pay.reddit.com/r/Minecraft/comments/23xvna/mapmaking_updated_biome_colours_and_how_to_change/ shows MC's dynamic per-biome colorization: http://i.imgur.com/hWNqb3P.jpg

hwnqb3p