Commit: b35f562e180c752fa18aafe489677aa9e8bf1b6a
Author: Clément Foucault
Date:   Fri Jun 9 23:51:48 2017 +0200
Branches: blender2.8
https://developer.blender.org/rBb35f562e180c752fa18aafe489677aa9e8bf1b6a

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.

===================================================================

M       source/blender/draw/engines/eevee/eevee_probes.c

===================================================================

diff --git a/source/blender/draw/engines/eevee/eevee_probes.c 
b/source/blender/draw/engines/eevee/eevee_probes.c
index 62cc437d396..169a5d4694e 100644
--- a/source/blender/draw/engines/eevee/eevee_probes.c
+++ b/source/blender/draw/engines/eevee/eevee_probes.c
@@ -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);

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to