Quantcast
Channel: Question and Answer » hlsl
Viewing all articles
Browse latest Browse all 69

Multisampled Nearest Filtering in PS 2.0 is it possible?

$
0
0

My game involves blocky, pixelated 3D textures. When using nearest neighbor filtering with a texture sampler, I get the desired result of nicely pixelated textures — with the caveat that hard lines between pixels are aliased. Here’s a screenshot of what I mean:

enter image description here

See the jaggies?

I’d like to know if I can use some kind of screen-space multisampling to fix these jagged edges. I’m using HLSL and pixel shader 2.0. Is it possible to accomplish this in the shader? (Note that MSAA does not work in this case because the aliasing is in the texture sampler, not in rasterizing geometry).


Viewing all articles
Browse latest Browse all 69

Trending Articles