In order to theoretically test the performance of a demo I am working on, I need to render an image with varying resolution(pixel density).
The idea is to enter a certain value to be used as a radius(from the center of the screen) so that the image will have a higher resolution inside the circle, and lower resolution outside of the circle.
I know that will not improve the performance, I am more interested in how it will look aesthetically.
I thought about writing a pixel shader that will use a different value for the desired pixel density for each of the areas, but I am new to writing pixel shaders.
Could anyone point me in the right direction as to how I can do that?