Making an advanced lighting system

23

Index

Contributors

Stats

11,540 visits, 26,548 views

Tools

License

This tutorial is licensed under CC BY 4.0. Please refer to the license text if you wish to reuse, share or remix the content contained within this tutorial.

Published on 3 Jun, 2019. Last updated 24 Jun, 2019

Once again, here is the final result 👀

This system works pretty well and has ok performance as long as you don't have too many lights or shadow casters.

It will be much more performant written entirely in Javascript.

Once the Javascript features are good enough to replace these events, I'll add a section with the JS code that do the exact same thing these events do.

Again, this will need some adjustments to be replicated for your game, and this tutorial is more of a guide on how to replicate it with my own implementation given as an example than a proper "do this, do that" tutorial.

Alright, end of tutorial, bye 👋.

  • 3 Comments

  • Order by
Want to leave a comment? Login or Register an account!
  • This great! Thanks!

  • trying to follow your tuto, great so far but I'm confuse on the page 5:

    OBJECT POOLING and PLACE THE SHADOW screencap don'tseem to show the same nested script.

    On the first one you see the event showcaster>>> pick instance with UID=uid with direct action linked to it and other events following (not sub event) and in the 2nd screenshot you see that the condition showcaster>>> pick instance with UID=uid has some other sub event.. which one is correct?