def fini(): global g_motionBlurGraphicsSettingListeners global g_graphicsSettingListeners chain(None) _deregisterGraphicsSettings() _deregisterMotionBlurGraphicsSettings() RenderTargets.fini() Phases.finiPhases() g_graphicsSettingListeners = [] g_motionBlurGraphicsSettingListeners = [] return
def defaultChain(optionIdx = -1): """ Create the default BigWorld PostProcessing chain, for the given graphics setting level. If no graphics setting level is passed in, the current Post Processing graphics setting is read from the graphics setting registry and used. """ if optionIdx == -1: optionIdx = BigWorld.getGraphicsSetting('POST_PROCESSING') RenderTargets.clearRenderTargets() if optionIdx == 0: chain(load('High_Graphics_Setting.ppchain')) elif optionIdx == 1: chain(load('Medium_Graphics_Setting.ppchain')) elif optionIdx == 2: chain(load('Low_Graphics_Setting.ppchain')) elif optionIdx == 3: chain(None) return
def defaultChain(optionIdx=-1): """ Create the default BigWorld PostProcessing chain, for the given graphics setting level. If no graphics setting level is passed in, the current Post Processing graphics setting is read from the graphics setting registry and used. """ if optionIdx == -1: optionIdx = BigWorld.getGraphicsSetting('POST_PROCESSING_QUALITY') RenderTargets.clearRenderTargets() if optionIdx == 0: chain(load('High_Graphics_Setting.ppchain')) elif optionIdx == 1: chain(load('Medium_Graphics_Setting.ppchain')) elif optionIdx == 2: chain(load('Low_Graphics_Setting.ppchain')) elif optionIdx == 3: chain(None) return
def init(): RenderTargets.createStubs() _registerGraphicsSettings() _registerMotionBlurGraphicsSettings()