Tagged Questions
0
votes
1answer
81 views
Incorrect colour blending when using a pixel shader with XNA
I'm using XNA 4.0 to create a 2D game and while implementing a layer tinting pixel shader I noticed that when the texture's alpha value is anything between 1 or 0 the end result is different than ...
2
votes
0answers
379 views
2D Line drawing with Pixel Shaders
Recently I asked a question, what is the fastest way to render 2D lines using DirectX, and one of the answers mentioned this paper on Fast Prefiltered Lines which uses Pixel Shaders to accomplish ...
9
votes
1answer
566 views
How to create a “retro” pixel shader for transformed 2D sprites that maintains pixel fidelity?
The image below shows two sprites rendered with point sampling on top of a background:
The left skull has no rotation/scaling applied to it, so every pixel matches perfectly with the background.
...