URP-PSX icon indicating copy to clipboard operation
URP-PSX copied to clipboard

Pixelation Shader Error

Open MrOnsku opened this issue 1 year ago • 4 comments

Getting this error when trying to use the pixelation shader, any help? image

MrOnsku avatar Jul 12 '23 16:07 MrOnsku

I also got this error not sure what to do about it

ACB23PO avatar Oct 05 '23 19:10 ACB23PO

@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

hanshermanberg avatar Feb 09 '24 22:02 hanshermanberg

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: @.***>

ACB23PO avatar Feb 10 '24 01:02 ACB23PO

quick note to anyone who sees this, make sure to set the "ditheringPass" variable in the replacement code with the related pass.

ACcreations67 avatar Aug 16 '24 00:08 ACcreations67