[Bf-blender-cvs] [7c023c098b6] tmp-eevee-shadow-commit-mp: EEVEE Shadows: Perform depth testing in tilemap_usage_transparent_ps_

Miguel Pozo noreply at git.blender.org
Mon Feb 6 18:10:53 CET 2023


Commit: 7c023c098b6c68906757cfd3903664f19f0e8026
Author: Miguel Pozo
Date:   Mon Feb 6 18:10:38 2023 +0100
Branches: tmp-eevee-shadow-commit-mp
https://developer.blender.org/rB7c023c098b6c68906757cfd3903664f19f0e8026

EEVEE Shadows: Perform depth testing in tilemap_usage_transparent_ps_

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

M	source/blender/draw/engines/eevee_next/eevee_shadow.cc

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

diff --git a/source/blender/draw/engines/eevee_next/eevee_shadow.cc b/source/blender/draw/engines/eevee_next/eevee_shadow.cc
index 30aa60ddabd..b0202f7bb86 100644
--- a/source/blender/draw/engines/eevee_next/eevee_shadow.cc
+++ b/source/blender/draw/engines/eevee_next/eevee_shadow.cc
@@ -1090,7 +1090,9 @@ void ShadowModule::set_view(View &view)
   tilemap_projection_ratio_ = tilemap_pixel_radius() /
                               screen_pixel_radius(view, int2(target_size));
 
-  usage_tag_fb.ensure(int2(target_size));
+  /* TODO(Miguel Pozo): Attach a lower-res hiZ copy for improved performance */
+  usage_tag_fb.ensure(GPU_ATTACHMENT_TEXTURE(inst_.render_buffers.depth_tx));
+
   render_fb_.ensure(int2(SHADOW_TILEMAP_RES * shadow_page_size_));
 
   bool tile_update_remains = true;



More information about the Bf-blender-cvs mailing list