Files
UltimateFishing/Assets/Scripts/Assembly-CSharp/UnityEngine/PostProcessing/PostProcessingContext.cs
2026-02-21 16:45:37 +08:00

71 lines
965 B
C#

namespace UnityEngine.PostProcessing
{
public class PostProcessingContext
{
public PostProcessingProfile profile;
public Camera camera;
public MaterialFactory materialFactory;
public RenderTextureFactory renderTextureFactory;
public bool interrupted { get; private set; }
public bool isGBufferAvailable
{
get
{
return camera.actualRenderingPath == RenderingPath.DeferredShading;
}
}
public bool isHdr
{
get
{
return camera.allowHDR;
}
}
public int width
{
get
{
return camera.pixelWidth;
}
}
public int height
{
get
{
return camera.pixelHeight;
}
}
public Rect viewport
{
get
{
return camera.rect;
}
}
public void Interrupt()
{
interrupted = true;
}
public PostProcessingContext Reset()
{
profile = null;
camera = null;
materialFactory = null;
renderTextureFactory = null;
interrupted = false;
return this;
}
}
}