def init_defines(self):
        """ Initializes all plugin settings as a define, so they can be queried
        in a shader """
        for plugin_id in self.enabled_plugins:
            pluginsettings = self.settings[plugin_id]
            self._pipeline.stage_mgr.defines["HAVE_PLUGIN_{}".format(plugin_id)] = 1
            for setting_id, setting in iteritems(pluginsettings):
                if setting.shader_runtime or not setting.runtime:
                    # Only store settings which either never change, or trigger
                    # a shader reload when they change
                    setting.add_defines(plugin_id, setting_id, self._pipeline.stage_mgr.defines)
 Initializes all plugin settings as a define, so they can be queried
        in a shader 
metadrive/render_pipeline/rpcore/pluginbase/manager.py