-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Closed
Labels
A-AssetsLoad files from disk to use for things like images, models, and soundsLoad files from disk to use for things like images, models, and soundsA-RenderingDrawing game state to the screenDrawing game state to the screenA-UIGraphical user interfaces, styles, layouts, and widgetsGraphical user interfaces, styles, layouts, and widgetsC-BugAn unexpected or incorrect behaviorAn unexpected or incorrect behavior
Description
What you did
Scaled an image in bevy_egui, resulting in aliasing artifacts. See vladbat00/bevy_egui#89
What you expected to happen
I would expect images to default to linear filtering.
What actually happened
Bevy appears to default Images' SamplerDescriptor to Nearest, because it is wgpu's default:
Bevy:
bevy/crates/bevy_render/src/texture/image.rs
Line 134 in 0529f63
| sampler_descriptor: wgpu::SamplerDescriptor::default(), |
wgpu SamplerDescriptor:
wgpu FilterMode:
alice-i-cecile
Metadata
Metadata
Assignees
Labels
A-AssetsLoad files from disk to use for things like images, models, and soundsLoad files from disk to use for things like images, models, and soundsA-RenderingDrawing game state to the screenDrawing game state to the screenA-UIGraphical user interfaces, styles, layouts, and widgetsGraphical user interfaces, styles, layouts, and widgetsC-BugAn unexpected or incorrect behaviorAn unexpected or incorrect behavior
