Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Tricking the Screen Position Node so that the Dither Effect is Consistent Across Platforms?

Discussion in 'Getting Started' started by tatea_unity, Nov 11, 2023.

  1. tatea_unity

    tatea_unity

    Joined:
    Dec 24, 2021
    Posts:
    1
    Hey all, I'm kind of new to the shader graph stuff, and I was working on a shader that uses a combination of sobel edge detecting and the dither filter to create a Obra-Dinn-esque shader. One problem though, because the screen position node is what dictates the dither effect, the effect scales with resolution, I would like to maintain a consistent dither resolution across all screen resolutions, is there a way to do this? Ideally, this would not effect the main screen/render resolution, as the game is not always in that artstyle in that scene, and only effect the shader. I've included screenshots of the shader graph, along with the problem.

    Thanks in advance!!!


    Screenshot 2023-11-10 230042.png


    Screenshot 2023-11-10 230341.png Screenshot 2023-11-10 230410.png