Skip to content

Conversation

@vincentfretin
Copy link
Contributor

Related issue: #25655

Description

PR #25660 introduced image support for HTMLMesh but it renders all images at the top left because of the 0, 0.
This is definitely not the desired behavior for my use case of having a wrist UI to change the texture of a furniture in VR.
My PR is calculating the x, y from element.getBoundingClientRect() like it's done for text element.

Here is the screenshot from chrome, but that's exactly the same render in VR:
Capture d’écran du 2023-04-24 16-55-47

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants