Add 'waterbiomeshaded' option to control water biome shading

This commit is contained in:
Mike Primm 2011-10-04 22:05:47 -05:00
parent e0752eba5b
commit ded2fa815c
5 changed files with 17 additions and 3 deletions

View file

@ -863,7 +863,7 @@ public class TexturePack {
* Read color for given subblock coordinate, with given block id and data and face
*/
public final void readColor(final HDPerspectiveState ps, final MapIterator mapiter, final Color rslt, final int blkid, final int lastblocktype,
final boolean biome_shaded, final boolean swamp_shaded) {
final boolean biome_shaded, final boolean swamp_shaded, final boolean water_shaded) {
int blkdata = ps.getBlockData();
HDTextureMap map = HDTextureMap.getMap(blkid, blkdata, ps.getBlockRenderData());
BlockStep laststep = ps.getLastBlockStep();
@ -1014,7 +1014,8 @@ public class TexturePack {
li = imgs[IMG_FOLIAGECOLOR];
break;
case COLORMOD_WATERTONED:
li = imgs[IMG_WATERCOLOR];
if(water_shaded)
li = imgs[IMG_WATERCOLOR];
break;
}
if(li != null) {