Rendering an image texture into a cubemap in openGL android
问题 I have a bitmap on my device(which is a 6x1 cubemap), which I want to render on all the faces of the cube InputStream is = getContext().getResources().openRawResource(R.raw.photo); Bitmap bitmap = BitmapFactory.decodeStream(is); int bytes = bitmap.getByteCount(); ByteBuffer pixels = ByteBuffer.allocate(bytes); bitmap.copyPixelsToBuffer(pixels); Here is my vertex shader: uniform mat4 uMVPMatrix; uniform mat4 uSTMatrix; attribute vec4 aPosition; attribute vec4 aTextureCoord; attribute vec4