@@ -116,9 +116,13 @@ pub struct Bloom {
116
116
pub composite_mode : BloomCompositeMode ,
117
117
118
118
/// 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 .
120
120
pub max_mip_dimension : u32 ,
121
121
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
+
122
126
/// Amount to stretch the bloom on each axis. Artistic control, can be used to emulate
123
127
/// anamorphic blur by using a large x-value. For large values, you may need to increase
124
128
/// [`Bloom::max_mip_dimension`] to reduce sampling artifacts.
@@ -148,6 +152,7 @@ impl Bloom {
148
152
max_mip_dimension : Self :: DEFAULT_MAX_MIP_DIMENSION ,
149
153
scale : Vec2 :: ONE ,
150
154
high_quality : true ,
155
+ max_mip_count : u32:: MAX ,
151
156
} ;
152
157
153
158
/// Emulates the look of stylized anamorphic bloom, stretched horizontally.
@@ -172,6 +177,7 @@ impl Bloom {
172
177
max_mip_dimension : Self :: DEFAULT_MAX_MIP_DIMENSION ,
173
178
scale : Vec2 :: ONE ,
174
179
high_quality : true ,
180
+ max_mip_count : u32:: MAX ,
175
181
} ;
176
182
177
183
/// A preset that applies a very strong bloom, and blurs the whole screen.
@@ -188,6 +194,7 @@ impl Bloom {
188
194
max_mip_dimension : Self :: DEFAULT_MAX_MIP_DIMENSION ,
189
195
scale : Vec2 :: ONE ,
190
196
high_quality : true ,
197
+ max_mip_count : u32:: MAX ,
191
198
} ;
192
199
}
193
200
0 commit comments