public DoomSRPPipeline(DoomSRPAsset asset) { Shader.globalRenderPipeline = "DoomSRP"; renderer = new ScriptableRenderer(asset); lightLoop.Initilize(settings); doomSRPPipeline = this; }
public ScriptableRenderer(DoomSRPAsset pipelineAsset) { if (pipelineAsset == null) { throw new ArgumentNullException("pipelineAsset"); } m_Materials = new[] { CoreUtils.CreateEngineMaterial("Hidden/InternalErrorShader"), CoreUtils.CreateEngineMaterial(pipelineAsset.resources.copyDepthShader), CoreUtils.CreateEngineMaterial(pipelineAsset.resources.samplingShader), CoreUtils.CreateEngineMaterial(pipelineAsset.resources.blitShader), CoreUtils.CreateEngineMaterial(pipelineAsset.resources.screenSpaceShadowShader), }; }