Skip to content

Depth bug when using OpenGLES graphics API #13

Description

@jun-nda

If change the graphics API whatever in editor or android runtime, the effect will be like this.

image

which height looks like not correct ,but the real reason is the depth is not corrct.
Because the depth range in opengl i [-1,1], dx and vulkan is [0,1].
so add this code is enough.
image

image

Activity

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

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