Hi @BradLarson ,
I need to use GPUImage to implement some face filters like MSQRD. My approach is modifying GPUImageFilter so that it can overlay a face mask on camera texture. By following this tutorial series https://www.raywenderlich.com/3664/opengl-tutorial-for-ios-opengl-es-2-0, I changed GPUImageFilter.m as follow:
I successfully overlay a test AR scene on the camera texture but failed with depth testing. How can I fix this code so that OpenGL ES depth test enabled?
Hi @BradLarson , I need to use GPUImage to implement some face filters like MSQRD. My approach is modifying GPUImageFilter so that it can overlay a face mask on camera texture. By following this tutorial series https://www.raywenderlich.com/3664/opengl-tutorial-for-ios-opengl-es-2-0, I changed GPUImageFilter.m as follow:
and modified Vertex shader as follow:
I successfully overlay a test AR scene on the camera texture but failed with depth testing. How can I fix this code so that OpenGL ES depth test enabled?