Пример #1
0
 public CustomRenderPipeline(CustomRenderPipelineAsset asset)
 {
     RTHandles.Initialize(1, 1, false, MSAASamples.None);
     CreateSharedBuffer();
     CreateGBuffers();
     m_LightCullingPass    = new LightCullingPass();
     m_DeferredLightingMat = CoreUtils.CreateEngineMaterial(Shader.Find("CustomSRP/DeferredLighting"));
     m_DebugLightCountMat  = CoreUtils.CreateEngineMaterial(Shader.Find("Hidden/DebugLightCountShader"));
     m_NumberCharts        = asset.NumberChartTexture;
     m_DebugTileCount      = asset.DebugTileCount;
 }
 public CustomRenderPipeline(CustomRenderPipelineAsset asset)
 {
     tonemappingMat      = CoreUtils.CreateEngineMaterial(Shader.Find("Hidden/ToneMapping"));
     deferredLightingMat = CoreUtils.CreateEngineMaterial(Shader.Find("Hidden/DeferredLighting"));
 }
 public CustomRenderPipeline(CustomRenderPipelineAsset asset)
 {
 }