Eevee:Uuse compressed format for probes.
One 1024px² octahedral probe (according to the GPU mem stats): - RGBA16F = 17Mb - RGB_11_11_10 = 4Mb For the time being I prefer to maximize the number of probe possible in the scene for users to test. This is obviously a temporary solution and the final choice of cubemap format should be exposed to the user.
This commit is contained in:
@@ -319,7 +319,7 @@ void EEVEE_probes_cache_finish(EEVEE_SceneLayerData *sldata)
|
||||
|
||||
if (!sldata->probe_pool) {
|
||||
sldata->probe_pool = DRW_texture_create_2D_array(PROBE_SIZE, PROBE_SIZE, max_ff(1, pinfo->num_cube),
|
||||
DRW_TEX_RGBA_16, DRW_TEX_FILTER | DRW_TEX_MIPMAP, NULL);
|
||||
DRW_TEX_RGB_11_11_10, DRW_TEX_FILTER | DRW_TEX_MIPMAP, NULL);
|
||||
if (sldata->probe_filter_fb) {
|
||||
DRW_framebuffer_texture_attach(sldata->probe_filter_fb, sldata->probe_pool, 0, 0);
|
||||
}
|
||||
@@ -338,7 +338,7 @@ void EEVEE_probes_cache_finish(EEVEE_SceneLayerData *sldata)
|
||||
}
|
||||
}
|
||||
|
||||
DRWFboTexture tex_filter = {&sldata->probe_pool, DRW_TEX_RGBA_16, DRW_TEX_FILTER | DRW_TEX_MIPMAP};
|
||||
DRWFboTexture tex_filter = {&sldata->probe_pool, DRW_TEX_RGB_11_11_10, DRW_TEX_FILTER | DRW_TEX_MIPMAP};
|
||||
|
||||
DRW_framebuffer_init(&sldata->probe_filter_fb, &draw_engine_eevee_type, PROBE_SIZE, PROBE_SIZE, &tex_filter, 1);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user