Opengl es OpenGL ES多重颜色缓冲区

Opengl es OpenGL ES多重颜色缓冲区,opengl-es,opengl-es-2.0,Opengl Es,Opengl Es 2.0,我使用一个帧缓冲区,带有两个颜色附件。我想在一个渲染调用中渲染到两个颜色附件中 layout (location = 0) out vec3 _color; layout (location = 1) out vec3 _depth; _color = texture(_colorImage, coord).xyz; _depth = texture(_depthImage, coord).xyz; 我测试了我的计算机应用程序,但现在我想在移动应用程序上使用相同的功能,但是如何在OpenGL

我使用一个帧缓冲区,带有两个颜色附件。我想在一个渲染调用中渲染到两个颜色附件中

layout (location = 0) out vec3 _color;
layout (location = 1) out vec3 _depth;

_color = texture(_colorImage, coord).xyz;
_depth = texture(_depthImage, coord).xyz;
我测试了我的计算机应用程序,但现在我想在移动应用程序上使用相同的功能,但是如何在OpenGL ES中渲染多个颜色附件


首选版本是OpenGL 2.0。但是我不需要这样做。

对于颜色附件,在OpenGL ES 2.0中不能渲染到多个;API不支持它

对于OpenGL ES 3.0以后的版本,其工作原理与OpenGL多渲染目标完全相同