Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClément Foucault <foucault.clem@gmail.com>2022-08-05 15:44:51 +0300
committerClément Foucault <foucault.clem@gmail.com>2022-08-05 15:45:39 +0300
commitf6ce2c1f7862ac572582681ef466aef5c8997289 (patch)
treeffaf3c36777eca83d0a6742576fcffa66a7b1201 /source/blender/draw/engines
parentc944dca127073db103cab380018dfc01b2cbb681 (diff)
EEVEE-Next: Depth Of Field: Add comment about failed optimization attempt
Diffstat (limited to 'source/blender/draw/engines')
-rw-r--r--source/blender/draw/engines/eevee_next/shaders/eevee_depth_of_field_filter_comp.glsl6
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/draw/engines/eevee_next/shaders/eevee_depth_of_field_filter_comp.glsl b/source/blender/draw/engines/eevee_next/shaders/eevee_depth_of_field_filter_comp.glsl
index bf7c9413da3..c5c0e210109 100644
--- a/source/blender/draw/engines/eevee_next/shaders/eevee_depth_of_field_filter_comp.glsl
+++ b/source/blender/draw/engines/eevee_next/shaders/eevee_depth_of_field_filter_comp.glsl
@@ -132,7 +132,11 @@ FilterLmhResult filter_lmh(FilterSample s1, FilterSample s2, FilterSample s3)
void main()
{
- /* OPTI(fclem) Could early return on some tiles. */
+ /**
+ * NOTE: We can **NOT** optimize by discarding some tiles as the result is sampled using bilinear
+ * filtering in the resolve pass. Not outputing to a tile means that border texels have undefined
+ * value and tile border will be noticeable in the final image.
+ */
cache_init();