public bool setParam(eSkyPlayerCameraEffectParamBase param) { if (m_postProcessing == null) { return(false); } if (param is eSkyPlayerCameraEffectBloomParam) { eSkyPlayerCameraEffectBloomParam p = param as eSkyPlayerCameraEffectBloomParam; if (m_postProcessing.profile.bloom.enabled == false) { return(false); } m_bloomModelBloomSetting.intensity = p.intensity; m_bloomModelBloomSetting.threshold = p.threshold; m_bloomModelBloomSetting.softKnee = p.softKnee; m_bloomModelBloomSetting.radius = p.radius; m_bloomModelBloomSetting.antiFlicker = p.antiFlicker; m_bloomModelSettings.lensDirt.intensity = p.lenDirtIntensity; m_bloomModelSettings.lensDirt.texture = p.lenDirtTexture; m_bloomModelSettings.bloom = m_bloomModelBloomSetting; m_postProcessing.profile.bloom.settings = m_bloomModelSettings; } else { return(false); } return(true); }
public eSkyPlayerCameraEffectParamBase getParam() { if (m_postProcessing == null) { return(null); } eSkyPlayerCameraEffectBloomParam p = new eSkyPlayerCameraEffectBloomParam(); p.intensity = m_bloomModelBloomSetting.intensity; p.threshold = m_bloomModelBloomSetting.threshold; p.softKnee = m_bloomModelBloomSetting.softKnee; p.radius = m_bloomModelBloomSetting.radius; p.antiFlicker = m_bloomModelBloomSetting.antiFlicker; p.lenDirtIntensity = m_bloomModelSettings.lensDirt.intensity; p.lenDirtTexture = m_bloomModelSettings.lensDirt.texture; return(p); }