fun getSurfaceTexture(): SurfaceTexture = surfaceTexture
| Format | Sampling logic in shader | |------------------|-------------------------------------------------| | Side‑by‑side | leftCoord.x = vTexCoord.x / 2 | | Over‑under | leftCoord.y = vTexCoord.y / 2 | | Full‑frame left/right | Use separate textures if available |
private fun generateTexture(): Int // ... generate GL_TEXTURE_EXTERNAL_OES texture
override fun onSurfaceChanged(gl: GL10?, width: Int, height: Int) GLES20.glViewport(0, 0, width, height)
please wait...