+ take into account alpha when rendering building frame

(TODO: consider more options - roof fill,??)
This commit is contained in:
artemp 2013-01-02 16:50:28 +00:00
parent f7ad2f18fa
commit 8b66128c89

View File

@ -148,7 +148,7 @@ void agg_renderer<T>::process(building_symbolizer const& sym,
agg::conv_stroke<path_type> stroke(path);
stroke.width(scale_factor_);
ras_ptr->add_path(stroke);
ren.color(agg::rgba8(int(r*0.8), int(g*0.8), int(b*0.8), int(255 * sym.get_opacity())));
ren.color(agg::rgba8(int(r*0.8), int(g*0.8), int(b*0.8), int(a * sym.get_opacity())));
agg::render_scanlines(*ras_ptr, sl, ren);
ras_ptr->reset();