use nightshade::prelude::*;

pub fn configure_defaults(world: &mut World) {
    world.resources.user_interface.enabled = true;
    world.resources.retained_ui.enabled = true;
    world.resources.render_settings.render_world_to_swapchain = false;
    world.resources.debug_draw.show_grid = true;

    world.resources.render_settings.atmosphere = Atmosphere::Hdr;

    world.resources.renderer_state.use_fullscreen = false;
    world.resources.render_settings.ssao_enabled = true;
    world.resources.render_settings.ssao_radius = 0.5;
    world.resources.render_settings.ssao_bias = 0.025;
    world.resources.render_settings.ssao_intensity = 1.5;

    world.resources.render_settings.ssr_enabled = false;
    world.resources.render_settings.ssr_max_steps = 64;
    world.resources.render_settings.ssr_thickness = 0.25;
    world.resources.render_settings.ssr_max_distance = 50.0;
    world.resources.render_settings.ssr_stride = 1.0;
    world.resources.render_settings.ssr_fade_start = 0.7;
    world.resources.render_settings.ssr_fade_end = 1.0;
    world.resources.render_settings.ssr_intensity = 1.0;

    world.resources.debug_draw.selection_outline_enabled = true;
    world.resources.debug_draw.selection_outline_color = [1.0, 0.45, 0.0, 1.0];

    world.resources.renderer_state.focus_policy =
        nightshade::ecs::graphics::resources::ViewportFocusPolicy::Manual;
}
