Doubling the DPI with a shader?

Posted by Mathias Lykkegaard Lorenzen on Game Development See other posts from Game Development or by Mathias Lykkegaard Lorenzen
Published on 2012-11-20T21:31:47Z Indexed on 2012/11/20 23:23 UTC
Read the original article Hit count: 295

Filed under:
|
|

I'm developing a game where the map is generated with Perlin Noise, but on the CPU. I am generating some perlin noise onto a texture with a small size, and then I stretch it out to the whole screen to simulate a map.

The reason for the CPU generating the noise is that I want it to look the same on all devices.

Now, here's the end-result.

enter image description here

Please ignore the bullets and the explosion on the picture. What matters is the background (the black/gray pixels) and the ground (the brown-ish pixels). They are rendered to the same texture through perlin noise.

However, this doesn't look very pretty. So I was wondering if it would be possible to double the amount of pixels using a shader, and rounding edges at the same time? In other words, improve the DPI.

I'm using SharpDX with DirectX 11, through its toolkit feature. But any help that'll lead me in the right direction (for instance through HLSL) would be a great help.

Thanks in advance.

© Game Development or respective owner

Related posts about hlsl

Related posts about resolution