Tagged Questions
-1
votes
0answers
50 views
XNA/HLSL cone shape 2D light
I'm new to HLSL and I'm trying to create a simple light for my 2D game. I made a point light and it looks great. However now I'm trying to create a cone shape light but I just don't know how. can ...
13
votes
2answers
1k views
Best way to mask 2D sprites in XNA?
I currently am trying to mask some sprites. Rather than explaining it in words, I've made up some example pictures:
The area to mask (in white)
Now, the red sprite that needs to be cropped.
The ...
1
vote
0answers
172 views
Outline Shader Effect for Orthogonal Geometry in XNA
I just recently started learning the art of shading, but I can't give an outline width to 2D, concave geometry when restrained to a single vertex/pixel shader technique (thanks to XNA).
the shape I ...
2
votes
0answers
1k views
Why is my deferred lighting implementation so expensive?
I've implemented deferred lighting and I tried to put about 20-26 lights on the viewable space of my map, and it brings down the FPS from 61 to 28-31. It also makes my VGA temperature to go from 68°C ...
7
votes
2answers
974 views
HLSL - Creating Shadows in 2D
The way that I create shadows is by the following technique:
http://www.catalinzima.com/2010/07/my-technique-for-the-shader-based-dynamic-2d-shadows/
But I have questions to HLSL. The way that I ...
0
votes
1answer
590 views
Some help understanding and modifying a 2D shader
I have a similar question as the one posed here, except that I don't wish to use a 1D Color Palette.
I simply wish to have it display 1 color of my choosing (red, for example). I plan to use this ...