rendering algorithms