当前位置:网站首页>OpenGL frame buffer

OpenGL frame buffer

2022-07-07 08:54:00 Naturally, and

Blog late at night .

Frame buffer

         Color buffer used to write color values 、 The combination of the depth buffer used to write depth information and the template buffer that allows us to discard specific fragments according to some conditions is called frame buffer .

OpenGL Allows us to define our own frame buffer , That is, we can define our own color buffer , Even depth buffering and template buffering .

Four conditions of frame buffer

  • Attach at least one buffer ( Color 、 Depth or template buffer ).
  • At least one color attachment (Attachment).
  • All attachments must be complete ( Memory reserved ).
  • Each buffer should have the same number of samples .

The attachment Is a memory location , It can be used as a buffer of frame buffer .

When creating an attachment, we have two options : Texture or render buffer objects (Renderbuffer Object).

原网站

版权声明
本文为[Naturally, and]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/188/202207070618206993.html