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

copyExternalImageToTexture in WebGPUBackend is missing flipY #26813

Closed
danrossi opened this issue Sep 20, 2023 · 1 comment · Fixed by #26818
Closed

copyExternalImageToTexture in WebGPUBackend is missing flipY #26813

danrossi opened this issue Sep 20, 2023 · 1 comment · Fixed by #26818

Comments

@danrossi
Copy link

Description

Image textures in WebGPUBackend are displaying upside down and need the flipY property added to device.queue.copyExternalImageToTexture

Reproduction steps

na

Code

    const geometry = new THREE.PlaneGeometry(10, 10);
    const imgMaterial = new MeshBasicNodeMaterial();
    const loader = new THREE.TextureLoader();
    const imgMesh = new THREE.Mesh(geometry, imgMaterial);

     imgMaterial.colorNode = texture(loader.load("./image.png"), uv());

Live example

](https://danrossi.github.io/three-webgpu-renderer/tests/webgpu_text3.html)

Screenshots

No response

Version

153dev

Device

Desktop

Browser

Chrome

OS

No response

@danrossi
Copy link
Author

Champion, what would we do without you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants