@@ -116,9 +116,13 @@ pub struct Bloom {
116116 pub composite_mode : BloomCompositeMode ,
117117
118118 /// Maximum size of each dimension for the largest mipchain texture used in downscaling/upscaling.
119- /// Lower values can improve performance but reduce quality .
119+ /// Lower values can improve performance but result in more aliasing .
120120 pub max_mip_dimension : u32 ,
121121
122+ /// Maximum number of mipmaps to use in downscaling/upscaling (default: [`u32::MAX`]).
123+ /// Lower values can improve performance but lose some low frequency contributions.
124+ pub max_mip_count : u32 ,
125+
122126 /// Amount to stretch the bloom on each axis. Artistic control, can be used to emulate
123127 /// anamorphic blur by using a large x-value. For large values, you may need to increase
124128 /// [`Bloom::max_mip_dimension`] to reduce sampling artifacts.
@@ -148,6 +152,7 @@ impl Bloom {
148152 max_mip_dimension : Self :: DEFAULT_MAX_MIP_DIMENSION ,
149153 scale : Vec2 :: ONE ,
150154 high_quality : true ,
155+ max_mip_count : u32:: MAX ,
151156 } ;
152157
153158 /// Emulates the look of stylized anamorphic bloom, stretched horizontally.
@@ -172,6 +177,7 @@ impl Bloom {
172177 max_mip_dimension : Self :: DEFAULT_MAX_MIP_DIMENSION ,
173178 scale : Vec2 :: ONE ,
174179 high_quality : true ,
180+ max_mip_count : u32:: MAX ,
175181 } ;
176182
177183 /// A preset that applies a very strong bloom, and blurs the whole screen.
@@ -188,6 +194,7 @@ impl Bloom {
188194 max_mip_dimension : Self :: DEFAULT_MAX_MIP_DIMENSION ,
189195 scale : Vec2 :: ONE ,
190196 high_quality : true ,
197+ max_mip_count : u32:: MAX ,
191198 } ;
192199}
193200
0 commit comments