Esempio n. 1
0
            internal bool Setup(ScreenSpaceAmbientOcclusionSettings featureSettings)
            {
                renderPassEvent   = featureSettings.renderPassEvent;
                m_CurrentSettings = featureSettings;
                switch (m_CurrentSettings.Source)
                {
                case ScreenSpaceAmbientOcclusionSettings.DepthSource.Depth:
                    ConfigureInput(ScriptableRenderPassInput.Depth);
                    break;

                case ScreenSpaceAmbientOcclusionSettings.DepthSource.DepthNormals:
                    ConfigureInput(ScriptableRenderPassInput.Normal);
                    break;

                default:
                    throw new ArgumentOutOfRangeException();
                }
                return(material != null &&
                       m_CurrentSettings.Intensity > 0.0f &&
                       m_CurrentSettings.Radius > 0.0f &&
                       m_CurrentSettings.SampleCount > 0);
            }
Esempio n. 2
0
 internal ScreenSpaceAmbientOcclusionPass()
 {
     m_CurrentSettings = new ScreenSpaceAmbientOcclusionSettings();
 }