Browse Source

Small simplification

fsr3.1
Nico de Poel 2 years ago
parent
commit
9e9a796c91
  1. 4
      Assets/Scripts/Fsr3UpscalerImageEffect.cs

4
Assets/Scripts/Fsr3UpscalerImageEffect.cs

@ -330,6 +330,7 @@ namespace FidelityFX
_dispatchDescription.MotionVectorScale.x = -scaledRenderSize.x;
_dispatchDescription.MotionVectorScale.y = -scaledRenderSize.y;
_dispatchDescription.RenderSize = scaledRenderSize;
_dispatchDescription.UpscaleSize = _displaySize;
_dispatchDescription.FrameTimeDelta = Time.unscaledDeltaTime;
_dispatchDescription.CameraNear = _renderCamera.nearClipPlane;
_dispatchDescription.CameraFar = _renderCamera.farClipPlane;
@ -395,9 +396,6 @@ namespace FidelityFX
_renderCamera.rect = _originalRect;
_renderCamera.ResetProjectionMatrix();
// Update the input resource descriptions
_dispatchDescription.UpscaleSize = new Vector2Int(_renderCamera.pixelWidth, _renderCamera.pixelHeight);
_dispatchCommandBuffer.Clear();
if (autoGenerateReactiveMask)

Loading…
Cancel
Save