|
|
@ -165,8 +165,16 @@ namespace UnityEngine.Rendering.PostProcessing |
|
|
// Convert the native texture into Unity-land using a blind texture data copy
|
|
|
// Convert the native texture into Unity-land using a blind texture data copy
|
|
|
cmd.CopyTexture(_outputIntermediate, _outputColor); |
|
|
cmd.CopyTexture(_outputIntermediate, _outputColor); |
|
|
|
|
|
|
|
|
// TODO: optional sharpening
|
|
|
|
|
|
cmd.BlitFullscreenTriangle(_outputColor, context.destination); |
|
|
|
|
|
|
|
|
if (config.performSharpenPass) |
|
|
|
|
|
{ |
|
|
|
|
|
// PSSR output is already pretty sharp and we don't want to over-sharpen the image, so cut the sharpness range by half
|
|
|
|
|
|
ApplySharpening(cmd, context, config.UpscaleSize, config.sharpness * 0.5f, _outputColor, context.destination); |
|
|
|
|
|
} |
|
|
|
|
|
else |
|
|
|
|
|
{ |
|
|
|
|
|
// Convert the PSSR output from R11G11B10 to the expected destination format
|
|
|
|
|
|
cmd.BlitFullscreenTriangle(_outputColor, context.destination); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
cmd.EndSample("PSSR"); |
|
|
cmd.EndSample("PSSR"); |
|
|
} |
|
|
} |
|
|
|