public bool setParam(eSkyPlayerCameraEffectParamBase param) { if (m_postProcessing == null) { return(false); } if (param is eSkyPlayerCameraEffectChromaticAberrationParam) { eSkyPlayerCameraEffectChromaticAberrationParam p = param as eSkyPlayerCameraEffectChromaticAberrationParam; if (m_postProcessing.profile.chromaticAberration.enabled == false) { return(false); } m_chromaticAberrationModelSettings.spectralTexture = p.spectralTexture; m_chromaticAberrationModelSettings.intensity = p.intensity; m_postProcessing.profile.chromaticAberration.settings = m_chromaticAberrationModelSettings; } else { return(false); } return(true); }
public eSkyPlayerCameraEffectParamBase getParam() { if (m_postProcessing == null) { return(null); } eSkyPlayerCameraEffectChromaticAberrationParam p = new eSkyPlayerCameraEffectChromaticAberrationParam(); p.spectralTexture = m_chromaticAberrationModelSettings.spectralTexture; p.intensity = m_chromaticAberrationModelSettings.intensity; return(p); }