Skip to content

issue with shape::plane uv or indices order #1018

@trashuj

Description

@trashuj

Bevy version
commit 1398d78 (HEAD -> master, origin/master, origin/HEAD)
Author: Corey Farwell [email protected]
Date: Fri Dec 4 17:31:17 2020 -0500

Allow windows to maximized. (#1004)

Operating system & version
Windows 10

What you did
Display a texture on a shape::Plane.
I modified the 3d_scene.rs to create a simple example (in zip file):
shape.zip

What you expected to happen
Looking at the original png ("textures/rpg/mobs/boss_bee.png"), we can see it's mirrored, ie it looks like we would look at it from the bottom except we look at it from the top (hope that makes sense)

What actually happened
texture is flipped

Additional information
I tried playing with the uv and indices order in shape.rs / struct Plane, but i'm not sure what is the global logic (are the indices wrong or UV?).
Also note that shape::Quad version is correct.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-RenderingDrawing game state to the screenC-BugAn unexpected or incorrect behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions