Tagged Questions
1
vote
1answer
118 views
Pixel Shader - apply a mask (XNA)
I'd like to apply a simple few masks to few images.
The first mask I'd like to implement is mask like:
XXXOOO
I mean, that on the right everything is masked (to black), and on the left everything ...
1
vote
0answers
105 views
How to achieve supersampling / anti-aliasing in pixel shaders?
I am trying to write a couple pixel shaders to apply to images similar to Photoshop effects. For example this effect: ...
1
vote
2answers
97 views
How to set multiple times, in a single spritebatch, the same pixel shader parameter
I make a test with Effect class in XNA and I want to set multiple times the same parameters (MyParameter in below code).
My code is :
[...]
//In Engine class
Effect ShaderEffect = ...
1
vote
1answer
380 views
XNA HLSL 2D outline shader
I have gotten into quite a bit of trouble getting my rendering correct in my tile based 2D game.
This kind of shader is surprisingly annoying to write, I've heard (we used it in one of our 3D ...
0
votes
2answers
319 views
HLSL shader optimization [closed]
The following HLSL shader (without preprocessing) results in 65 arithmetic operations (see below). Can the same effect achieved with <=64 operations?
// Center of "light"
float x;
float y;
// ...
1
vote
1answer
626 views
How to set TextureFilter to Point to make example Bloom filter work?
I have simple app that renders some particles and now I am trying to apply the bloom shader from the xna samplers ( http://create.msdn.com/en-US/education/catalog/sample/bloom ) to it, but I am ...
