Skip to content

I found an easy way to invert global Y coordinate from -Y to +Y #54

@vertoker

Description

@vertoker

I don't like that source perspective matrix is for coordinate space where Y coordinate is inverted
I know that Vulkan Canonical View Volume is the same, but most of my models are use +Y by default and most engines (Unity) use +Y too

Source perspective matrix looks like this
image

After some logical research, I just add minus
image

And most of my models use VK_FRONT_FACE_CLOCKWISE, change it if you needed
Also update character script, just use up as {0.0f, 1.0f, 0.0f}
Also update models and camera positions and rotations

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