Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Merged by Bors] - Respect mipmap_filter when create ImageDescriptor with linear()/nearest() #6349

Closed
wants to merge 1 commit into from

Conversation

jkb0o
Copy link
Contributor

@jkb0o jkb0o commented Oct 23, 2022

Respect mipmap_filter when create ImageDescriptor with linear()/nearest()

Objective

Fixes #6348

Migration Guide

This PR changes default ImageSettings and may lead to unexpected behaviour for existing projects with mipmapped textures. Users should provide custom ImageSettings resource with mipmap_filter=FilterMode::Nearest if they want to keep old behaviour.

@alice-i-cecile alice-i-cecile added C-Bug An unexpected or incorrect behavior A-Rendering Drawing game state to the screen labels Oct 23, 2022
Copy link
Contributor

@MDeiml MDeiml left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree with these changes. Most of the time people will want linear mipmap filtering and I didn't find any indications that this should hurt performance in any way. (The nearest_descriptor change doesn't really matter since this is the default already, but I guess it's good to be explicit here.)

Copy link
Contributor

@superdump superdump left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this makes sense.

bors r+

bors bot pushed a commit that referenced this pull request Nov 3, 2022
…st() (#6349)

Respect mipmap_filter when create ImageDescriptor with linear()/nearest()

# Objective

Fixes #6348

## Migration Guide

This PR changes default `ImageSettings` and may lead to unexpected behaviour for existing projects with mipmapped textures. Users should provide custom `ImageSettings` resource with `mipmap_filter=FilterMode::Nearest` if they want to  keep old behaviour.

Co-authored-by: Yakov Borevich <j.borevich@gmail.com>
@bors
Copy link
Contributor

bors bot commented Nov 3, 2022

Build failed:

@superdump
Copy link
Contributor

bors r+

bors bot pushed a commit that referenced this pull request Nov 3, 2022
…st() (#6349)

Respect mipmap_filter when create ImageDescriptor with linear()/nearest()

# Objective

Fixes #6348

## Migration Guide

This PR changes default `ImageSettings` and may lead to unexpected behaviour for existing projects with mipmapped textures. Users should provide custom `ImageSettings` resource with `mipmap_filter=FilterMode::Nearest` if they want to  keep old behaviour.

Co-authored-by: Yakov Borevich <j.borevich@gmail.com>
@bors bors bot changed the title Respect mipmap_filter when create ImageDescriptor with linear()/nearest() [Merged by Bors] - Respect mipmap_filter when create ImageDescriptor with linear()/nearest() Nov 3, 2022
@bors bors bot closed this Nov 3, 2022
ItsDoot pushed a commit to ItsDoot/bevy that referenced this pull request Feb 1, 2023
…st() (bevyengine#6349)

Respect mipmap_filter when create ImageDescriptor with linear()/nearest()

# Objective

Fixes bevyengine#6348

## Migration Guide

This PR changes default `ImageSettings` and may lead to unexpected behaviour for existing projects with mipmapped textures. Users should provide custom `ImageSettings` resource with `mipmap_filter=FilterMode::Nearest` if they want to  keep old behaviour.

Co-authored-by: Yakov Borevich <j.borevich@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Rendering Drawing game state to the screen C-Bug An unexpected or incorrect behavior
Projects
None yet
Development

Successfully merging this pull request may close these issues.

No mipmap interpolation, mipmap level 0 fetched by default.
4 participants