pmndrs / drei

🥉 useful helpers for react-three-fiber
https://docs.pmnd.rs/drei
MIT License
8.47k stars 714 forks source link

Auto scale on `Image` doesn't work #1864

Open la55u opened 9 months ago

la55u commented 9 months ago

Problem description:

The Readme says it has auto-scale behaviour (like object-fit: cover in CSS) which seems to not work in newer versions of drei.

Relevant code:

Reproduction: https://codesandbox.io/p/sandbox/horizontal-tiles-forked-mnpgl8?file=%2Fsrc%2FApp.js%3A15%2C21

Note that this is the exact same code that is linked on the Examples page of r3f docs, only the dependencies were updated.

Suggested solution:

-

github-actions[bot] commented 1 month ago

Thank you for contributing! We’re marking this issue as stale as a gentle reminder to revisit it and give it the attention it needs to move forward.

Any activity, like adding an update or comment, will automatically remove the stale label so it stays on our radar.

Feel free to reach out on Discord if you need support or feedback from the community. This issue will close automatically soon if there’s no further activity. Thank you for understanding and for being part of the project!

teiermobi commented 1 month ago

I can confirm this in newer versions. I currently downgraded to the version specified in the example la55u linked. Any update on this?