ochornenko / Camera2GLPreview

Android camera preview application using Camera2 API and OpenGL ES/Vulkan
174 stars 53 forks source link

Multiple Renderers #1

Closed oguzgu closed 5 years ago

oguzgu commented 6 years ago

Hi, I'm trying to create multiple opengl filters.

For these filters, How can i add multiple renders after YUV420renderers?

ochornenko commented 6 years ago

You can apply filters in render() function or extend from VideoRendererYUV420 and override render() then create your render in VideoRenderer::create(int type). Also you would need to create your own shaders and apply them for you filters.