我一直在使用 everyplay SDK 来记录我的项目的游戏玩法(ios-opengles 2.0)。它运作良好。但如果我使用 RenderToTexture (用于阴影),它只会记录空白屏幕。我怎样才能克服这个问题?
对于阴影,我需要有多个渲染 channel 来移动 rendertarget 。还有其他办法吗?
最佳答案
尝试这样:
while(1) {
renderShadow();
glBindFramebuffer(GL_FRAMEBUFFER, fbo1);
[everyplayCapture afterPresentRenderbuffer:fbo1];
glClearColor(0.45f, 0.45f, 0.45f, 1.0f);
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
....
glDrawArrays(GL_TRIANGLE_STRIP, 0, 4);
...
[everyplayCapture beforePresentRenderbuffer:fbo1];
[(EAGLView *)self.view presentFramebuffer];
}
关于ios - Everyplay 是否支持多个渲染 channel ? (iOS),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19242071/