Skip to content

Question about the code that might be important to beginners #638

@ColinGilbert

Description

@ColinGilbert

Hi,

On line

tex_coords: [m.mesh.texcoords[i * 2], 1.0 - m.mesh.texcoords[i * 2 + 1]],

The code tex_coords: [m.mesh.texcoords[i * 2], 1.0 - m.mesh.texcoords[i * 2 + 1]], substracts the second UV coordinate from 1.0 instead of loading it from the file unchanged.

Why do you do this when loading a 3D model? Is there something specific to WGPU that we should know?

Thanks for your time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions