2d tile lighting
BlitzMax Forums/BlitzMax Programming/2d tile lighting
| ||
Ok so I've been working on this code of a while with a mate of mine and got this far. It works fine its just i wanted to know if there was a better of doing the lighting because its going to get pretty slow with 4+ light points. also i wanted to know if there is a better way that i can blend the colours together (Without using alpha blend, too slow). thx for any help. |
| ||
cool ! |
| ||
I used images with LIGHTBLEND. It does the trick for me if I use a good image. |
| ||
I found a great article about lighting here! in effect it's about creating a shadow casting system that is very fast. I've tried it and managed to add 32 lights and get realistic looking shadows but it depends upon the size of the tilemap on screen, and I have not yet done any speed tests! If your interested in the code I can post? |