EXCLUDE_STRUCTURAL = 0x00020000,
EXCLUDE_BOTCLIP = 0x00040000,
EXCLUDE_VISPORTALS = 0x00080000,
+ EXCLUDE_DECALS = 0x00100000,
};
class Filter
filter_face_contents g_filter_face_detail(BRUSH_DETAIL_MASK);
filter_brush_all_faces g_filter_brush_detail(&g_filter_face_detail);
+filter_face_shader_prefix g_filter_face_decals("textures/decals/");
+filter_brush_any_face g_filter_brush_decals(&g_filter_face_decals);
+
void BrushFilters_construct()
{
add_brush_filter(g_filter_brush_detail, EXCLUDE_DETAILS);
add_brush_filter(g_filter_brush_detail, EXCLUDE_STRUCTURAL, true);
add_brush_filter(g_filter_brush_lightgrid, EXCLUDE_LIGHTGRID);
+ add_brush_filter(g_filter_brush_decals, EXCLUDE_DECALS);
}
#if 0
if(g_pGameDescription->mGameType != "doom3")
{
create_check_menu_item_with_mnemonic(menu_in_menu, "Botclips", "FilterBotClips");
+ create_check_menu_item_with_mnemonic(menu_in_menu, "Decals", "FilterDecals");
}
// filter manipulation
menu_separator(menu_in_menu);
if(g_pGameDescription->mGameType != "doom3")
{
add_filter_command(EXCLUDE_BOTCLIP, "FilterBotClips", Accelerator('M', (GdkModifierType)GDK_MOD1_MASK));
+ add_filter_command(EXCLUDE_DECALS, "FilterDecals", Accelerator('D', (GdkModifierType)GDK_SHIFT_MASK));
}
PerformFiltering();