Hello, I have searched for like 2 hours now and i cant seem to find an awswer, How do i make my Shader Graph pixelated, i already got the effect to work great, now id just like to pixelate it, to fit more with my game, Something like the photo below, but without using any code

Thanks in Advance
3 Likes
2 Answers
2
Since a fragment shader calculates each pixel independently, you can’t pixelate the result. What you can do is round the input coordinates for your effect (e.g. UV or screen position) to the nearest pixel. So instead of taking the final image and pixelating it, you work with “pixelated coordinates” right from the start. Here is a simple example for pixelated gradient noise:
For anyone coming here to find a solution, @BastianUrbach has the right idea, but you need to add a subtract of 0.5f before the rounding so you don’t get half-pixel widths around the borders, regardless of the overall size.
Hello, Thank you so much, now my shaders look much better
– goldrusherThank you for the suggestion. It worked perfectly for me ! :)
– fredaroo