Skip to content

Commit 9f4b034

Browse files
committed
Update README.md
1 parent befe3a0 commit 9f4b034

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ In this branch, I'm maintaing another approach to render camera preview on proce
33
The idea is to render camera preview on a `SurfaceTexture` and as soon as the new frame is received, copy the data from this `SurfaceTexture` to processing's underlying texure.
44
We cannot directly render to processing's own texture because it's bound `GLES20.GL_TEXTURE_2D` target, whereas for the preview to happen, the texture should be bound to `GLES11Ext.GL_TEXTURE_EXTERNAL_OES`.
55

6-
As of now, I've written pretty much the OpenGL code but a lot still remains to be fixed.
6+
I create a framebuffer object and attach processing's own texture to this framebuffer at GL_COLOR_ATTACHMENT0. I then render SurfaceTexture shader output to this framebuffer and it atomatically gets drawn to processing's texture.
77

8-
For an alternative, but working, ultra slow approach head over to pixel_manipulation branch.
8+
For an alternative approach, please head over to pixel_manipulation branch.

0 commit comments

Comments
 (0)