From e0c3c8a8d9ef76dfe7cd0f1aa2c2793d5ef27f45 Mon Sep 17 00:00:00 2001 From: rdb Date: Tue, 25 Oct 2022 17:50:45 +0200 Subject: [PATCH] filter: Add docstring for CommonFilters.setMSAA [skip ci] --- direct/src/filter/CommonFilters.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/direct/src/filter/CommonFilters.py b/direct/src/filter/CommonFilters.py index c5313d0662..8c4857f1f9 100644 --- a/direct/src/filter/CommonFilters.py +++ b/direct/src/filter/CommonFilters.py @@ -466,6 +466,13 @@ class CommonFilters: return task.cont def setMSAA(self, samples): + """Enables multisample anti-aliasing on the render-to-texture buffer. + If you enable this, it is recommended to leave any multisample request + on the main framebuffer OFF (ie. don't set framebuffer-multisample true + in Config.prc), since it would be a waste of resources otherwise. + + .. versionadded:: 1.10.13 + """ fullrebuild = "MSAA" not in self.configuration or self.configuration["MSAA"].samples != samples newconfig = FilterConfig() newconfig.samples = samples