RT-EGG / CsLibraries

The library for me. C# common, mathematics, graphics with OpenGL (C# library OpenTK).
Other
0 stars 0 forks source link

Improve rendering framework. #11

Closed RT-EGG closed 2 years ago

RT-EGG commented 2 years ago

Reduce shader variant commit cost.

  1. Make transform matrix buffer. UBO for projection and view matrix, SSBO for model matrix.
  2. Make rendering needs to be through the scene.
  3. Collect transform matrix buffer when start of the scene rendering.
  4. Make grouped rendering by shader.
  5. Move shader binding from GLRenderer to GLScene (or new GLDisplayList class or other).
  6. After shader binding, commit transform matrix buffer like a built-in variable.
RT-EGG commented 2 years ago

Implement in "Improve#11" branch.