Jump to content

GLTF Loader Inverted Textures


Recommended Posts


I'm having some issues getting the GLTF File Loader working with the models I've been provided due to the option invertY is true by default in the construction of Textures (line 1335).

Looking at the GLTF spec, I'm not sure why this decision has been made as the suggestion is to not invert textures for WebGL runtimes:

Implementation Note: With WebGL API, the first pixel transferred from the TexImageSource (i.e., HTML Image object) to the WebGL implementation corresponds to the upper left corner of the source. Non-WebGL runtimes may need to flip Y axis to achieve correct texture rendering.

Based on this, should the default be changed to use invertY: false? Or at least allow the user to specify this themselves?

Edit - Also noted that this would remove the need for the expensive normalizeUVs method.

Link to comment
Share on other sites

  • NinjaMark changed the title to GLTF Loader Inverted Textures

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...