Postmodern OpenGL 4 / 后现代 OpenGL 系列
本系列适合已经了解现代 OpenGL3 并具备一定图形学基础的读者。
如果您还不熟悉 OpenGL,可以先查看这些资源: LearnOpenGL [CN], Anton
其实,这个系列的名称本该是 "Advanced OpenGL 4",之所以用了这个略带戏虐的“后现代”名字, 是因为.. 我们亲爱的OpenGL 或许会有一天消失 它至今陪伴了我们30余年,然而可能会被恐怖的Vulkan,亦或新秀wgpu取代。 虽然这一天还远未到来,但它也许只是时间问题。
无论如何,本文的重点在于思想,而不是具体的API。因此,即使接口工具过时,理论和思想依然可以延续。
Resources
- Khronos OpenGL4.6 Quick Reference Card
- Guide-to-Modern-OpenGL-Functions by fendevel
- GL Wrapper by Luna
- https://github.com/PacktPublishing/3D-Graphics-Rendering-Cookbook
- https://juandiegomontoya.github.io/modern_opengl.html
- https://medium.com/@daniel.coady/compute-shaders-in-opengl-4-3-d1c741998c03
- https://learnopengl.com/Guest-Articles/2022/Compute-Shaders/Introduction
1. MultiDraw Indirect. MDI
为了提高渲染性能,我们可以使用 batching 的方法。
这里分为两块 MultiDraw 和 Indirect。
- 什么是MultiDraw?
- 什么是Indirect
回顾GL有哪些Draw种类

