Skip to content

common_settings

CommonSettings

Bases: SettingsBase

Common setting group that handles a variety of sub-settings, including: - Rendering - Geometry - Materials - Lighting - Simple Fog - Flow - Debug View

Source code in renderer_settings/common_settings.py
class CommonSettings(SettingsBase):
    """
    Common setting group that handles a variety of sub-settings, including:
        - Rendering
        - Geometry
        - Materials
        - Lighting
        - Simple Fog
        - Flow
        - Debug View
    """

    def __init__(self):
        self.render_settings = RenderSettings()
        self.geometry_settings = GeometrySettings()
        self.materials_settings = MaterialsSettings()
        self.lighting_settings = LightingSettings()
        self.simple_fog_setting = SimpleFogSettings()
        self.flow_settings = FlowSettings()
        self.debug_view_settings = DebugViewSettings()

    @property
    def settings(self):
        settings = {}
        settings.update(self.render_settings.settings)
        settings.update(self.geometry_settings.settings)
        settings.update(self.materials_settings.settings)
        settings.update(self.lighting_settings.settings)
        settings.update(self.simple_fog_setting.settings)
        settings.update(self.flow_settings.settings)
        settings.update(self.debug_view_settings.settings)
        return settings