0

support for biome coloring on side grass (closes issue #341)

This commit is contained in:
Aaron Griffith
2011-04-28 19:18:29 -04:00
parent a09d7f3d16
commit d163e7c527
3 changed files with 9 additions and 16 deletions

View File

@@ -432,8 +432,9 @@ def generate_special_texture(blockID, data):
# all need to behandled here (and in chunkpy)
if blockID == 2: # grass
top = tintTexture(terrain_images[0],(115,175,71))
img = _build_block(top, terrain_images[3], 2)
img = _build_block(terrain_images[0], terrain_images[3], 2)
colored = tintTexture(biome_grass_texture, (115, 175, 71))
composite.alpha_over(img, colored, (0, 0), colored)
return (img.convert("RGB"), img.split()[3])
@@ -1179,7 +1180,7 @@ def tintTexture(im, c):
return i
# generate biome (still grayscale) leaf, grass textures
biome_grass_texture = _build_block(terrain_images[0], terrain_images[3], 2)
biome_grass_texture = _build_block(terrain_images[0], terrain_images[38], 2)
biome_leaf_texture = _build_block(terrain_images[52], terrain_images[52], 18)