URP-PSX
URP-PSX copied to clipboard
Pixelation Shader Error
Getting this error when trying to use the pixelation shader, any help?
I also got this error not sure what to do about it
@MrOnsku @Zooki0
In the three RendererFeature files, change this:
public override void AddRenderPasses(ScriptableRenderer renderer, ref RenderingData renderingData)
{
fogPass.Setup(renderer.cameraColorTarget);
renderer.EnqueuePass(fogPass);
}
to this:
public override void AddRenderPasses(ScriptableRenderer renderer, ref RenderingData renderingData)
{
renderer.EnqueuePass(ditheringPass);
}
public override void SetupRenderPasses(ScriptableRenderer renderer, in RenderingData renderingData)
{
ditheringPass.Setup(renderer.cameraColorTargetHandle);
}
Source: https://gist.github.com/Refsa/54da34a9e2fc8e45472286572216ad17?permalink_comment_id=3582638
Thank you! 😊
On Fri, 9 Feb 2024, 22:49 Herman Berg, @.***> wrote:
@MrOnsku https://github.com/MrOnsku @Zooki0 https://github.com/Zooki0
In the three RendererFeature files, change this:
public override void AddRenderPasses(ScriptableRenderer renderer, ref RenderingData renderingData) { fogPass.Setup(renderer.cameraColorTarget); renderer.EnqueuePass(fogPass); }
to this:
public override void AddRenderPasses(ScriptableRenderer renderer, ref RenderingData renderingData) { renderer.EnqueuePass(ditheringPass); }
public override void SetupRenderPasses(ScriptableRenderer renderer, in RenderingData renderingData) { ditheringPass.Setup(renderer.cameraColorTargetHandle); }
Source: https://gist.github.com/Refsa/54da34a9e2fc8e45472286572216ad17?permalink_comment_id=3582638
— Reply to this email directly, view it on GitHub https://github.com/Kodrin/URP-PSX/issues/10#issuecomment-1936705226, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXPKTHTWTZ7DOQUDGX5QWCTYS2RWFAVCNFSM6AAAAAA2HYSZGGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMZWG4YDKMRSGY . You are receiving this because you were mentioned.Message ID: @.***>
quick note to anyone who sees this, make sure to set the "ditheringPass" variable in the replacement code with the related pass.