Пример #1
0
    //I don't want my UI layer to do useless things e.g. shadows, post-processing, meaningless blits...
    //So if the Camera.RenderingPath is set to legacy ones, I let it to use my default simple pipeline
    public override void Render(ScriptableRenderContext renderContext, Camera[] cameras)
    {
        Camera[] defaultCameras;
        Camera[] customCameras;

        SRPDefault.FilterCameras(cameras, out defaultCameras, out customCameras);

        SRPPlaygroundPipeline.Render(renderContext, customCameras);
        SRPDefault.Render(renderContext, defaultCameras);
    }
Пример #2
0
    public override void Render(ScriptableRenderContext renderContext, Camera[] cameras)
    {
        Camera[] defaultCameras;
        Camera[] customCameras;

        SRPDefault.FilterCameras(cameras, out defaultCameras, out customCameras);

        SRP02Rendering.Render(renderContext, customCameras, SRP02CP);
        SRPDefault.Render(renderContext, defaultCameras);
    }
Пример #3
0
 public override void Render(ScriptableRenderContext renderContext, Camera[] cameras)
 {
     //base.Render(renderContext, cameras);
     SRPDefault.Render(renderContext, cameras);
 }