Fixed terrain preview not clearing base texture zone

This commit is contained in:
Michaël Lemaire 2013-10-03 23:31:23 +02:00
parent 23cad30548
commit 29d258574a

View file

@ -61,6 +61,7 @@ Renderer* terrainCreatePreviewRenderer()
textures = TexturesDefinitionClass.create();
layersClear(textures->layers);
TexturesLayerDefinition* layer = layersGetLayer(textures->layers, layersAddLayer(textures->layers, NULL));
zoneClear(layer->terrain_zone);
layer->displacement_height = 0.0;
layer->material.base = colorToHSL(COLOR_WHITE);
layer->material.reflection = 0.05;