public static UniversalRenderPipelineAsset Create(ScriptableRendererData rendererData = null)
        {
            // Create Universal RP Asset
            var instance = CreateInstance <UniversalRenderPipelineAsset>();

            if (rendererData != null)
            {
                instance.m_RendererDataList[0] = rendererData;
            }
            else
            {
                instance.m_RendererDataList[0] = CreateInstance <ForwardRendererData>();
            }
            // Initialize default Renderer
            instance.m_EditorResourcesAsset = LoadResourceFile <UniversalRenderPipelineEditorResources>();
            instance.m_Renderers            = new ScriptableRenderer[1];
            instance.m_Renderers[0]         = instance.m_RendererDataList[0].InternalCreateRenderer();
            return(instance);
        }
Beispiel #2
0
        public static UniversalRenderPipelineAsset Create(ScriptableRendererData rendererData = null)
        {
            // Create Universal RP Asset
            var instance = CreateInstance <UniversalRenderPipelineAsset>();

            if (rendererData != null)
            {
                instance.m_RendererDataList[0] = rendererData;
            }
            else
            {
                instance.m_RendererDataList[0] = CreateInstance <UniversalRendererData>();
            }

            // Initialize default Renderer
            instance.m_EditorResourcesAsset = instance.editorResources;

            return(instance);
        }
Beispiel #3
0
        public static UniversalRenderPipelineAsset Create(ScriptableRendererData rendererData = null)
        {
            // Create Universal RP Asset
            var instance = CreateInstance <UniversalRenderPipelineAsset>();

            if (rendererData != null)
            {
                instance.m_RendererDataList[0] = rendererData;
            }
            else
            {
                instance.m_RendererDataList[0] = CreateInstance <ForwardRendererData>();
            }

            // Initialize default Renderer
            instance.m_EditorResourcesAsset = instance.editorResources;

            // Set default post process data
            instance.m_PostProcessData = PostProcessData.GetDefaultPostProcessData();

            return(instance);
        }