3

1回のレンダリングパスで深度とカラーバッファを2つの別々のテクスチャでレンダリングするようにFBOを設定するにはどうすればよいですか?

4

1 に答える 1

3

Just attach a suitable texture to the FBOs depth attachment point:

      glFramebufferTexture2DEXT(GL_FRAMEBUFFER_EXT, GL_DEPTH_ATTACHMENT_EXT,GL_TEXTURE_2D, textureId, 0);

.. and another texture to the color attachment point. See this for more information.

于 2011-03-08T21:02:30.177 に答える