You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: crates/bevy_post_process/src/bloom/settings.rs
+15-1Lines changed: 15 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -116,13 +116,21 @@ pub struct Bloom {
116
116
pubcomposite_mode:BloomCompositeMode,
117
117
118
118
/// Maximum size of each dimension for the largest mipchain texture used in downscaling/upscaling.
119
-
/// Only tweak if you are seeing visual artifacts.
119
+
/// Lower values can improve performance but result in more aliasing.
120
120
pubmax_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
+
pubmax_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.
125
129
pubscale:Vec2,
130
+
131
+
// Whether to use a high quality bloom implementation (default: true).
132
+
// If false, bloom will use an implementation that significantly reduces the number of texture samples and improves performance, but at the cost of lower quality.
Bloom now has a `high_quality` (default: true) option to control whether to use a high quality implementation, or a faster but lower quality implementation. The lower quality bloom still maintains reasonable visual quality while significantly reducing texture sampling. For low-end devices, this could potentially reduce frame time by a few milliseconds.
0 commit comments