ColinLeung-NiloCat/UnityURP-MobileScreenSpacePlanarReflection

Depth bug when using OpenGLES graphics API

jun-nda opened this issue · 0 comments

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