예제 #1
0
 public void Setup(
     ScriptableRenderContext context, Camera camera, Vector2Int bufferSize,
     PostFXSettings settings, bool useHDR, int colorLUTResolution,
     CameraSettings.FinalBlendMode finalBlendMode, CameraBufferSettings.BicubicRescalingMode bicubicRescaling
     )
 {
     this.useHDR     = useHDR;
     this.context    = context;
     this.camera     = camera;
     this.bufferSize = bufferSize;
     this.settings   =
         (camera.cameraType <= CameraType.SceneView) ? settings : null;
     this.colorLUTResolution = colorLUTResolution;
     this.finalBlendMode     = finalBlendMode;
     this.bicubicRescaling   = bicubicRescaling;
     ApplySceneViewState();
 }
예제 #2
0
 public void Setup
     (ScriptableRenderContext context,
     Camera camera, Vector2Int bufferSize,
     PostFXSettings settings, bool keepAlpha,
     bool useHDR, int colorLUTResolution,
     CameraSettings.FinalBlendMode finalBlendMode,
     CameraBufferSettings.BicubicRescalingMode bicubicRescaling,
     CameraBufferSettings.FXAA fxaa)
 {
     this.context            = context;
     this.camera             = camera;
     this.settings           = camera.cameraType <= CameraType.SceneView ? settings : null;
     this.useHDR             = useHDR;
     this.colorLUTResolution = colorLUTResolution;
     this.finalBlendMode     = finalBlendMode;
     this.bufferSize         = bufferSize;
     this.bicubicRescaling   = bicubicRescaling;
     this.fxaa      = fxaa;
     this.keepAlpha = keepAlpha;
     ApplySceneViewState();
     //Debug.Log(fxaa.enabled);
 }