PP-2.3.0 and URP-8.1.0 support?
Hi, I was wondering if you've had a chance to play around with the latest URP + PP? I'd like to get the Pixelation shaders to work with the latest iteration of URP and PP, but I'm fairly certain that the updates you've made to the Pixelation Package are compatible with LWRP, but not the latest URP (unfortunately). One thing I found is that a Volume Override will be required to apply the shader to a Post-Processing Volume; here's some example overrides. I've created an override for Pixelation that does work when selecting Add Override in a global post-processing volume:
using System;
using UnityEngine;
using UnityEngine.Rendering;
using UnityEngine.Rendering.PostProcessing;
using UnityEngine.Rendering.Universal;
namespace Assets.Pixelation.Scripts
{
[Serializable, VolumeComponentMenu("Post-processing/Pixelation")]
public sealed class PixelationOverride : VolumeComponent, IPostProcessComponent
{
[Range(64.0f, 512.0f)]
public FloatParameter BlockCount = new ClampedFloatParameter(128f, 64f, 512f);
public bool IsActive() => true;
public bool IsTileCompatible() => true;
}
}
Unfortunately that's not all that's required. I'm still looking into how to wire up this Pixelation volume override to the Pixelationv2 shader, but maybe you have an idea of what would need to be done to get it to work?
Here's a thread that talks about post-processing in URP that I just posted a follow up to for information on how to create a custom volume override.
Hi @kayroice - Haven't tried it myself, and am not really sure what shader changes are necessary.
If you find a solution while you're investigating, let me know! Would be happy to merge something to support it, just don't have time to do the investigation myself right now.