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