Skip to content

Commit

Permalink
use mip mapping for icons in the editor + project manager
Browse files Browse the repository at this point in the history
- makes icons smoother
  • Loading branch information
mrDIMAS committed Dec 19, 2024
1 parent ac97efc commit ca7f320
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion editor/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,8 @@ pub fn load_texture_internal(data: &[u8]) -> Option<TextureResource> {
data,
TextureImportOptions::default()
.with_compression(CompressionOptions::NoCompression)
.with_minification_filter(TextureMinificationFilter::Linear),
.with_minification_filter(TextureMinificationFilter::LinearMipMapLinear)
.with_lod_bias(-1.0),
)
.ok()?;

Expand Down
3 changes: 2 additions & 1 deletion project-manager/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ pub fn load_image(data: &[u8]) -> Option<UntypedResource> {
data,
TextureImportOptions::default()
.with_compression(CompressionOptions::NoCompression)
.with_minification_filter(TextureMinificationFilter::Linear),
.with_minification_filter(TextureMinificationFilter::LinearMipMapLinear)
.with_lod_bias(-1.0),
)
.ok()?
.into(),
Expand Down

0 comments on commit ca7f320

Please sign in to comment.