lordmauve / wasabi2d

Cutting-edge 2D game framework for Python
https://wasabi2d.readthedocs.io/
GNU Lesser General Public License v3.0
156 stars 26 forks source link

Perform all polygon rendering with multisampling #32

Closed lordmauve closed 5 years ago

lordmauve commented 5 years ago

Currently multisampling is an option on the scene. This presents some problems - for example, screen capture from a multisample framebuffer gives undefined results.

Adding FSAA was a cheat to increase rendering quality for polygons. However, this has a global cost. Instead we can simply render the polygon VAOs to a FBO that has multisampling enabled, then render this to the screen, without multisampling. This means polygons will always be pretty and nothing else pays the multisampling cost, including the screenshot bug.

lordmauve commented 5 years ago

This is now committed. I removed the scene antialiasing option.

Possibly this should be optional, behind something like Scene.options.polygon_aa = False