Tagged Questions
1
vote
1answer
94 views
XNA effect lighting like basic effect lighting
Is it possible to make lighting in a normal effect work like the lighting in the basic effect?
With a basic effect it's really easy:
BasicEffect effect;
effect.EnableDefaultLighting();
5
votes
1answer
269 views
Performance of pixel shaders vs. SpriteBatch: XNA
Precondition: I read this question/answer about using shaders, or spritebatch, to render and mark a sprite.
I need to do something like that. I also have a 2D lighting PoC which I need to write. The ...
2
votes
1answer
514 views
2D Point Light XNA , Why my point light radius is Oval?
I friend of mine , taught me how to make a simple 2d point light with shader, so i follow his steps and finally done it !
but something happend , the light shape is like an oval and not like a ...
4
votes
2answers
2k views
2D XNA Tile Based Lighting. Ideas and Methods
I am currently working on developing a 2D tile based game, similar to the game 'Terraria'. We have the base tile and chunk engine working and are now looking to implement lighting. Instead of the tile ...
1
vote
2answers
630 views
Getting a black scene with XNA, what am I doing wrong?
I'm new to XNA (ver 4) and I'm obviously doing something wrong but I don't know what.
So far I have managed to model my scene (quite simple, just a bunch of squares which are calculated--there are no ...