Skip to content

Fix glTF importer wrongly ignoring sampler filters#19118

Merged
alice-i-cecile merged 1 commit intobevyengine:mainfrom
greeble-dev:issue-19114
May 26, 2025
Merged

Fix glTF importer wrongly ignoring sampler filters#19118
alice-i-cecile merged 1 commit intobevyengine:mainfrom
greeble-dev:issue-19114

Conversation

@greeble-dev
Copy link
Copy Markdown
Contributor

Objective

Fix #19114.

Solution

#17875 changed the glTF importer to make sure that sampler filters are linear when anisotropic filtering is enabled - this is required by wgpu. But the condition was mistakenly inverted, so it forces the filtering to linear when anisotropic filtering is not enabled.

Testing

cargo run --example color_grading
cargo run --example testbed_3d

@kristoff3r kristoff3r added D-Trivial Nice and easy! A great choice to get started with Bevy A-glTF Related to the glTF 3D scene/model format C-Bug An unexpected or incorrect behavior labels May 7, 2025
@kristoff3r kristoff3r added this to the 0.16.1 milestone May 7, 2025
@greeble-dev
Copy link
Copy Markdown
Contributor Author

I'm changing the milestone to 0.17 as the bug shouldn't be present in 0.16 - #17875 was merged post-0.16.

@greeble-dev greeble-dev modified the milestones: 0.16.1, 0.17 May 8, 2025
@greeble-dev greeble-dev added the S-Needs-Review Needs reviewer attention (from anyone!) to move forward label May 8, 2025
Copy link
Copy Markdown
Contributor

@axlitEels axlitEels left a comment

Choose a reason for hiding this comment

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

I probably should review as the author of this bug. Thanks for quick investigation!

@ThierryBerger ThierryBerger added S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it and removed S-Needs-Review Needs reviewer attention (from anyone!) to move forward labels May 17, 2025
@alice-i-cecile alice-i-cecile added this pull request to the merge queue May 26, 2025
Merged via the queue into bevyengine:main with commit ed0266b May 26, 2025
43 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-glTF Related to the glTF 3D scene/model format C-Bug An unexpected or incorrect behavior D-Trivial Nice and easy! A great choice to get started with Bevy S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TonemappingTest.gltf is rendered with incorrect texture filtering

5 participants