Eevee: Shadow: Add high bitdepth option.

This option is here for reducing the memory usage of shadow maps.

Also lower bitdepth are quicker to process.
This commit is contained in:
2017-09-02 02:27:28 +02:00
parent f46b908cc5
commit 6c17348e91
6 changed files with 22 additions and 8 deletions

View File

@@ -312,6 +312,7 @@ static void EEVEE_scene_layer_settings_create(RenderEngine *UNUSED(engine), IDPr
BKE_collection_engine_property_add_int(props, "shadow_method", SHADOW_ESM);
BKE_collection_engine_property_add_int(props, "shadow_size", 512);
BKE_collection_engine_property_add_bool(props, "shadow_high_bitdepth", false);
}
static const DrawEngineDataSize EEVEE_data_size = DRW_VIEWPORT_DATA_SIZE(EEVEE_Data);