Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Depth bug when using OpenGLES graphics API #13

Open
jun-nda opened this issue Apr 30, 2024 · 0 comments
Open

Depth bug when using OpenGLES graphics API #13

jun-nda opened this issue Apr 30, 2024 · 0 comments

Comments

@jun-nda
Copy link

jun-nda commented Apr 30, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant